J
Jimbo
Hi People,
I have the following bit of code:
Console.WriteLine(DateTime.Now.ToString());
TcpClient tcp = new TcpClient(server, port);
Console.WriteLine(DateTime.Now.ToString());
When "server" is an IP address it takes approximately 5 seconds while
Windows works out if there is a Netbios name or not. However when
"server" is a Netbios name there is no delay and the Tcp connection is
made instantiously.
Is there anyway to stop Windows doing this and just getting it to talk
to the IP address it's been told to talk to? The irony is that the
Netbios name gets turned back into an IP address for TCP/IP packet
communication anyway.
Thanks
James.
I have the following bit of code:
Console.WriteLine(DateTime.Now.ToString());
TcpClient tcp = new TcpClient(server, port);
Console.WriteLine(DateTime.Now.ToString());
When "server" is an IP address it takes approximately 5 seconds while
Windows works out if there is a Netbios name or not. However when
"server" is a Netbios name there is no delay and the Tcp connection is
made instantiously.
Is there anyway to stop Windows doing this and just getting it to talk
to the IP address it's been told to talk to? The irony is that the
Netbios name gets turned back into an IP address for TCP/IP packet
communication anyway.
Thanks
James.