G
Guest
Is there any way to resolve the ip address of the host machine or a machine
at the other end of a network connection? I have created a client-server Tcp
project that only uses the TcpClient and TcpListener classes for the
connections.
I have tried:
Dns.Resolve("localhost").Address[0].ToString();
but that only gives me "127.0.0.1"
I would prefer it though if I could resolve the address of the clients from
the server, rather than having to pass the IpAddress across the network.
Any ideas?
Thanks
at the other end of a network connection? I have created a client-server Tcp
project that only uses the TcpClient and TcpListener classes for the
connections.
I have tried:
Dns.Resolve("localhost").Address[0].ToString();
but that only gives me "127.0.0.1"
I would prefer it though if I could resolve the address of the clients from
the server, rather than having to pass the IpAddress across the network.
Any ideas?
Thanks