473,794 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable NetBios in TcpClient

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

Apr 5 '07 #1
3 2422
On Thu, 05 Apr 2007 06:35:43 -0700, Erjan <er*********@gm ail.comwrote:
[...]
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
Apr 5 '07 #2

"Erjan" <er*********@gm ail.comwrote in message
news:11******** *************@p 77g2000hsh.goog legroups.com...
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
Apr 5 '07 #3
On 5 apr, 18:52, "Goran Sliskovic" <gslis...@yahoo .comwrote:
"Erjan" <erjanalt...@gm ail.comwrote in message

news:11******** *************@p 77g2000hsh.goog legroups.com... 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,

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

Apr 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
16272
by: Snuffy2 | last post by:
I'm looking to try to get a users MAC and/or NetBIOS name when they visit my website. It somehow can be done, I'm not sure with PHP, but it can be done. Does anyone have any idea how? As an example check out: http://stealthtests.lockdowncorp.com/ On that site, there are tests that will display NetBIOS & MAC addresses.
3
9114
by: Daniel | last post by:
TcpClient close() method socket leak when i use TcpClient to open a connection, send data and close the TcpClient with myTcpClientInstance.Close(); it takes 60 seconds for the actual socket on the client machine to close per my network app the computer fills up w/ thousands of these :0 TCP foobox:8888 localhost:2188 TIME_WAIT :0 TCP foobox:8888 localhost:2189 TIME_WAIT :0 TCP foobox:8888 localhost:2190 TIME_WAIT
3
3050
by: מורדי | last post by:
Hi, I'm writing a client/server application in which the client send a series of screenshots to the server to be saved using the tcpclient. in most cases the first screenshot is transmitted ok and arrives at the server but from after that i only a couple of KB from the start of the file which cases the picture to display only the very top (of the screen). All the pictures are saved at the client side before sent to the server and they...
3
28656
by: Ricardo Quintanilla | last post by:
i had a problem whom i do not know how to explain. i was using a TcpClient (System.Net.Sockets.TcpClient) object to send and receive data to an AS400 socket. Two months ago it started to work slowly, about 4 seconds between send and receive. In our production environment with hundreds of transactions it was truly costly. a while ago i changed de TcpClient object. Now i am using a Socket (System.Net.Sockets.Socket) object and it...
0
1975
by: Torsten Brasch | last post by:
Hi All and Happy New Year ;) I have a very strange problem with System.Net.Sockets.TcpClient(). For some reason, the number of bytes I can receive is limited to 5460 bytes. I made sure that the server really sends everything I expect it to send. I am actually sending XML messages and this limit is a pain in the ... Here is the code: -------------------------------------------------------------------------- Dim tcpclient As New...
4
3650
by: Michael Tissington | last post by:
Is it possible to read the NetBIOS domain name and if so how ? -- Michael Tissington http://www.oaklodge.com http://www.tabtag.com
1
4540
by: hamil | last post by:
I am having trouble using the TcpListener and TcpClient classes. At the end of this post is server code that runs, and a class whose purpose is described below. I need to know when the client closes the connection so I can exit my listener code. Here is what I have tried. First I asked MSDN and they said..
8
7808
by: =?iso-8859-1?q?Magnus_T=F6rnvall?= | last post by:
Hi! I'm trying to write a program that can tell if a remote computer is running Windows or not. The thing is, it have to go very fast, so I don't want to "connect" to the computer. My plan is to send a netbios request and if I get a response I know it's probably a Windows machine. The problem is that I can't use the Netbios function in NETAPI32.DLL,
5
7324
by: puzzlecracker | last post by:
It looks like i need to get IPEndPoint first, but I cannot figure out from msdn the eventual obtainment of machine name and port number. Please suggest a solution. Thanks
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10435
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.