hi, my computer configured to have automatically ip address and when i use ipconfig /all command that shows something like below:
Windows IP Configuration
PPP adapter Broadband Connection:
Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 95.38.95.204 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 0.0.0.0
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::64d7:e4ee:ba7e:1ede IPv4 Address. . . . . . . . . . . : 192.168.72.198 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.1
i should use 95.38.95.204 or 192.168.72.198 as ip address for server and client?
when i use 192.168.72.198, server connect successfully but client throw an SocketException like below
var tcpServer = new TcpClient();
tcpServer.Connect(new IpAddress("192.168.72.198"), 1986);
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.72.198:1986
i used this articles on geekpedia at http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1---Building-the-Chat-Client.html
thanks if anybody can help me