B
Benny Raymond
Is it possible to get the ip address of the pc connecting to my
TcpListener? Here's how my code works so far:
listener = new TcpListener(_myIP, _port);
listener.Start();
// block until we get a connection
TcpClient client = listener.AcceptTcpClient();
// at this point I need to store the IP address for
// future ref... but how!?
Any help would be great - thanks!
TcpListener? Here's how my code works so far:
listener = new TcpListener(_myIP, _port);
listener.Start();
// block until we get a connection
TcpClient client = listener.AcceptTcpClient();
// at this point I need to store the IP address for
// future ref... but how!?
Any help would be great - thanks!