C++ client connection ends up sending netbios query
I'm not a programmer so bear with me, just looking for ideas and hoping for help.

We have a program that uses this code:  http://www.codeproject.com/Articles/9424/Single-Server-Multiple-Clients-Win32-MFC-classes-f

When the client tries to connect for some reason it gets the right IP address but then sends a NETBIOS (port 137) request to the server's IP.  This usually ends up failing because the server is on the other side of a firewall that blocks NETBIOS (as do most ISPs).  At that point the code thinks the connection is invalid and errors out and doesn't try the socket connection to the correct server end port.

My question is, can someone point out to me either a way to prevent the NETBIOS call to the server, or suggest a way to modify the code to ignore the NETBIOS call and connect anyway?
C++ client connection ends up sending netbios query
===

I'm not a programmer so bear with me, just looking for ideas and hoping for help.

We have a program that uses this code:  http://www.codeproject.com/Articles/9424/Single-Server-Multiple-Clients-Win32-MFC-classes-f

When the client tries to connect for some reason it gets the right IP address but then sends a NETBIOS (port 137) request to the server's IP.  This usually ends up failing because the server is on the other side of a firewall that blocks NETBIOS (as do most ISPs).  At that point the code thinks the connection is invalid and errors out and doesn't try the socket connection to the correct server end port.

My question is, can someone point out to me either a way to prevent the NETBIOS call to the server, or suggest a way to modify the code to ignore the NETBIOS call and connect anyway?