G
Guest
hi all,
I have written a C# Service which is a Server accepting Clients,It is
working fine when i connect from localhost but when i connect from any other
machine to my machine , the service is not working, the Service is in
"Network Service".....i even tried "Local System" and also "Local Service"
but the end result is , it is working only for Localhost connections and not
for Remote Connections...
the code for server is as follows..
////////////************Server Code starts here**********//////////////////
IPAddress ipAddress = Dns.Resolve("localhost").AddressList[0];
TcpListener listener = new TcpListener(ipAddress,portNum);
try
{
listener.Start();
TcpClient handler = listener.AcceptTcpClient();
////extra things done here
}
////////////************Server Code starts here**********//////////////////
but the remote connections are not getting connected.......why so?
with regards,
C.C.Chakkaradeep
I have written a C# Service which is a Server accepting Clients,It is
working fine when i connect from localhost but when i connect from any other
machine to my machine , the service is not working, the Service is in
"Network Service".....i even tried "Local System" and also "Local Service"
but the end result is , it is working only for Localhost connections and not
for Remote Connections...
the code for server is as follows..
////////////************Server Code starts here**********//////////////////
IPAddress ipAddress = Dns.Resolve("localhost").AddressList[0];
TcpListener listener = new TcpListener(ipAddress,portNum);
try
{
listener.Start();
TcpClient handler = listener.AcceptTcpClient();
////extra things done here
}
////////////************Server Code starts here**********//////////////////
but the remote connections are not getting connected.......why so?
with regards,
C.C.Chakkaradeep