not-local server with sockets
Hi guys,
I wrote an echo server with sockets.
Here is the server socket creating code:
Code:
IPEndPoint iep = new IPEndPoint(IPAddress.IPv6Any, 1234);
Socket server = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
server.Bind(iep);
The client program has to provide the ip of the server, so when the server and the client are running from my computer I use the Link-local IPv6 Address as shown in ipconfig (aaxx::xxxx:xxax:axax:xaxa%xx)
I must use Ipv6 because I run win7.
What ip should the client provide in case that the server runs from my computer and the client runs from another computer?
Thanks.