S
Samik R.
I am creating a TCP server app, which will run on a particular machine.
Currently I am using the following code (C#):
LocalHost = Dns.GetHostAddresses("localhost")[0];
Port = 2121;
CommandListener = new TcpListener(LocalHost, Port);
CommandListener.Start();
Naturally, the server is accepting connections at 127.0.0.1:2121. But I
also want it to accept connection at it's actual IP address (e.g.,
192.168.1.111:2121). How might I be able to do that?
Thanks.
-Samik
Currently I am using the following code (C#):
LocalHost = Dns.GetHostAddresses("localhost")[0];
Port = 2121;
CommandListener = new TcpListener(LocalHost, Port);
CommandListener.Start();
Naturally, the server is accepting connections at 127.0.0.1:2121. But I
also want it to accept connection at it's actual IP address (e.g.,
192.168.1.111:2121). How might I be able to do that?
Thanks.
-Samik