Autor Beitrag
Stianbl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 14.10.04 21:14 
Ok, need some really big helpe here.. :(

I Have made a program that I call Admin Tools, and i`s used to take controll over other computers...
Only problem is, this only works if you DON`T have a router! :cry:

So, one idea that works even if you re behind a router is: Switch the server/clients, and then make the remote-computer connect up to you!
This works, but I don`t know how to seperate several connections, and how to get their ip, and how to give them my ip so that they can connect to me. One idea is to use Browser, but I use Dephi 6 and I cant?t find that function.. I only see that function in D7!

So, my question is:
Anybody know how I kan make a server and a client to do this? I need the Main-computer to recieve the username of all the remote-computers currently on.. And then let me select one of them to controle! :lol: :?

Thanks in advance! :wink:
opfer.der.genauigkeit
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754
Erhaltene Danke: 1



BeitragVerfasst: Fr 15.10.04 10:07 
Maybe I don't understand you but let's have a try.

You want to get the IP- and Portadress of a connecting client?

You can use the class TCustomServerSocket which has an event called OnClientConnect (TSocketNotifyEvent).
The result of a TSocketNotifyEvent is a Sender: TObject and a Socket: TCustomWinSocket.
This socket has different properties also it knows the remote address and the remote port of
the connecting client.

Delphi Help:
============

TCustomServerSocket -> OnClientConnect -> TCustomWinSocket


I hope this is helpfull for you.

_________________
Stellen Sie sich bitte Zirkusmusik vor.
Stianbl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Fr 15.10.04 12:58 
Ok, what I want, is to get a list of all remote-computer that is running the server-prog, and then click on one of the computers to gt access...