When I execute the below code i get the following error "A socket operation was attempted to an unreachable host".
Please help me in this regard.
Thanks and regards,
Govind
Code:
main_sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); main_ipEndPoint = new IPEndPoint(Dns.GetHostByName(server).AddressList[0], this.port); main_sock.Connect(main_ipEndPoint);
Thanks and regards,
Govind
Comment