B
Bob
Hi,
I have some code that sets up an asynchronous server. It is working
fine on my XP machines but I can't get it to work on Vista.
Actually, it "works: in that it runs but when I try to connect via
telnet I get nothing. I have tried opening up the port and also
turned off the firewall. Neither seems to work and it won't accept
conections. Does anyone know of anything else I should do?
Thanks,,
Bob
IPHostEntry localMachineInfo =
Dns.GetHostEntry(Dns.GetHostName());
IPEndPoint myEndpoint = new IPEndPoint(
localMachineInfo.AddressList[0], _port);
// Create the socket, bind it, and start listening
_serverSocket = new
Socket(myEndpoint.Address.AddressFamily,
SocketType.Stream, ProtocolType.Tcp);
_serverSocket.Bind(myEndpoint);
_serverSocket.Listen((int)SocketOptionName.MaxConnections);
I have some code that sets up an asynchronous server. It is working
fine on my XP machines but I can't get it to work on Vista.
Actually, it "works: in that it runs but when I try to connect via
telnet I get nothing. I have tried opening up the port and also
turned off the firewall. Neither seems to work and it won't accept
conections. Does anyone know of anything else I should do?
Thanks,,
Bob
IPHostEntry localMachineInfo =
Dns.GetHostEntry(Dns.GetHostName());
IPEndPoint myEndpoint = new IPEndPoint(
localMachineInfo.AddressList[0], _port);
// Create the socket, bind it, and start listening
_serverSocket = new
Socket(myEndpoint.Address.AddressFamily,
SocketType.Stream, ProtocolType.Tcp);
_serverSocket.Bind(myEndpoint);
_serverSocket.Listen((int)SocketOptionName.MaxConnections);