How to disable NetBios in TcpClient

  • Thread starter Thread starter Erjan
  • Start date Start date
E

Erjan

Hi,

I am using TcpClient to connect to a device which does not talk
NetBios. The TcpClient tries first to do something with Netbios. This
probably failes on a timeout and then TcpClient sets up the TCP
connection. Due to this it takes about 5 secons to set up a TCP
connection on a LAN.

Is it possible to disable the NetBios request ? I have rewritten the
program with sockets but also sockets try to
do someting with NetBios.

Regards,
Erjan
 
[...]
Is it possible to disable the NetBios request ? I have rewritten the
program with sockets but also sockets try to
do someting with NetBios.

I don't understand your question. The TcpClient should *only* be using
TCP, which is in turn *only* supported on TCP/IP. Netbios can be
supported on TCP/IP as well, but the opposite is not true.

You should provide a complete-but-minimal example of code that reproduces
your problem, with a detailed explanation of what you expect it to do and
how that is different from what it actually does.

All that said, you may have a network configuration problem, which should
be solved by fixing your network. You wouldn't be able to address an
issue like that in your own code.

Pete
 
Erjan said:
Hi,

I am using TcpClient to connect to a device which does not talk
NetBios. The TcpClient tries first to do something with Netbios. This
probably failes on a timeout and then TcpClient sets up the TCP
connection. Due to this it takes about 5 secons to set up a TCP
connection on a LAN.

Is it possible to disable the NetBios request ? I have rewritten the
program with sockets but also sockets try to
do someting with NetBios.
....

As Peter said, TcpClient is not using netbios. I suspect problem here might
be the name resolution. Provide IP address in dotted form to TcpClient (eg.
192.168.1.1, whatever you are using) and see if it helps (if you don't
already).

Regards,
Goran
 
Hi,



...

As Peter said, TcpClient is not using netbios. I suspect problem here might
be the name resolution. Provide IP address in dotted form to TcpClient (eg.
192.168.1.1, whatever you are using) and see if it helps (if you don't
already).

Regards,
Goran

Hi,

You are right. I was looking in disabling NetBios in some way in the
TcpClient. I have run the same program at my private computer and
there where was no NetBios communication. It must be the network
configuration on the LAN.

Thanks for giving me the hints to search in the right direction.

Regards,
Erjan
 
Back
Top