I am trying to establish a client and server asynchronous connection using sockets in c#. I have in fact download the examples for client and for server. I am wandering what stands that line: IPHostEntry ipHostInfo = Dns.GetHostEntry("host.contoso.com");
What am I suppose to retrieve in case of server and client in IPhostEntry? Should that line return host, ip and port of every device (either the server or client)?
EDIT: I copy in the place of host.contoso.com the ip of the server which already run and I got the following message: An address incompatible with the requested protocol was used.
EDIT: I add in fact IPHostEntry ipHostInfo = Dns.GetHostEntry("127.0.0.1:11000");
and I am receiving no such host is known.