TCP bridged connection loses Windows Network Places
Posted: Fri Jun 11, 2010 10:45 pm
I'm having a little trouble keeping a UDP connection up reliably at public hotspots (sometimes dies after 2 minutes requiring a Reconnect). After experimenting with a TCP connection, I found it seemed to stay up better at certain hotspots but when exploring My Network Places after a TCP connect, I see only the laptop in my MS Workgroup (my desktop computer hosting the OpenVPN server does not show up). Unlike a TCP connection, a UDP connection does show both computers in the workgroup including the desktop computer.
Reading the log I noticed a difference in the client events leading to a TCP connection vs a UDP connection. Now I'm using ip-win32 netsh on the client as I've found this more reliably sets the Tap's address (and may allow MS to modify the netsh code to conform to a new OS, e.g. Vista). In addition to setting the TAP's address, there are two additional calls to netsh on a TCP connection: 1) delete the Tap's DNS; and 2) delete the Tap's WINS. This latter delete might explain why all hosts in the Workgroup don't show up in a TCP connection. The UDP connection log shows a single netsh call to set the Tap's address via dhcp without changing the DNS or WINS.
I suppose the questions are: 1) do I have this right?; and 2) can I/should I eliminate or override the deletion of DNS and Wins on a TCP connection?
Reading the log I noticed a difference in the client events leading to a TCP connection vs a UDP connection. Now I'm using ip-win32 netsh on the client as I've found this more reliably sets the Tap's address (and may allow MS to modify the netsh code to conform to a new OS, e.g. Vista). In addition to setting the TAP's address, there are two additional calls to netsh on a TCP connection: 1) delete the Tap's DNS; and 2) delete the Tap's WINS. This latter delete might explain why all hosts in the Workgroup don't show up in a TCP connection. The UDP connection log shows a single netsh call to set the Tap's address via dhcp without changing the DNS or WINS.
I suppose the questions are: 1) do I have this right?; and 2) can I/should I eliminate or override the deletion of DNS and Wins on a TCP connection?