locked
TCP Sockets RRS feed

  • Question

  • I have configured multiple client machine IP address and Port number in Database. whenever I want to send the data from server to client  that time server reading IP and Port number from database and sending message through TCP Client. 

    Now the problem is my client machine IP and port already i configured but now my client machine working in WAN or ethernet, in this scenario my client machine IP will be different because of this sub-net has been changed.

    TcpClient socketForServer = new TcpClient("192.168.2.54", 12345);

    Acutally this is the configured IP and port number to connect my client but the problem is now my client machine connected with DHCP IP so it will not connect.That IP is 192.168.5.54

    Anyone please help me how to connect my client machine from server through TCP listener or TCP client in C#

    Monday, December 9, 2013 5:13 AM

All replies