Link to home
Start Free TrialLog in
Avatar of ance
ance

asked on

how to get Ip address from tcpListener

how to get Ip address from tcpListener when other connected as tcpClient on the same port number ?

i.e : iam the server, i want to know ip of each client connected to me

thanks
Avatar of msreekm
msreekm
Flag of United States of America image

there is a thread which was discussing the same, have a look at this link:

http://www.winsockvb.com/forums/showthread.php?s=c184cbcbc797087b5fb8062cd691cf58&p=8494#post8494

-Sree
Avatar of Mohammed Nasman
Hello

Look at RemoteEndPoint and IPEndPoint
The IPEndPoint class contains the host and port information needed by an application to connect to a service on a host. By combining the host's IP address and port number of a service, the IPEndPoint class forms a connection point to a service

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetipendpointclasstopic.asp
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial