Re: Receiving ERROR_BAD_NETPATH using WNetAddConnection3 using IP addr

Tech-Archive recommends: Fix windows errors by optimizing your registry



Unfortunately we don't support dotted decimal notation when specifying the server name. You will have to continue using the netbios name to get this working.

Regards,
Alexander T. Bussmann [MSFT]
alexbu@xxxxxxxxxxxxx

"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:E16B00B7-547A-438A-889A-EEDD3B14A4DC@xxxxxxxxxxxxxxxx
Hello. I'm working in WinCE 5.0 connecting to a network share on a WinXP box
using WNetAddConnection3. When I connect using a UNC containing the target
machine's computer name, everything works as expected (e.g.
"\\server\share"). When I attempt to connect using a UNC with an IP address,
the function WNetAddConnection3 returns ERROR_BAD_NETPATH (e.g.
"\\192.168.1.2\share") even though it's the same share as the one above.

What could I be missing that would allowing the first one to work while the
second one fails?

Thanks,
Dan

.



Relevant Pages

  • Re: STUMPER: File and print sharing in AD???
    ... this shed some light on the matter of UNC share ... Disabling NeTBT disables the ... be painless but older apps that call NetBIOS functions explicitly will ... That means the machine I ran it on has Direct SMB and NetBT over TCP/IP ...
    (microsoft.public.windows.server.active_directory)
  • Re: TCP/IP NetBIOS Helper, WINS Tab, Netbt.sys
    ... If I then disable the NetBios stuff on the WINS tab, ... netbios names to access the unc share either... ... of my network card, my computer stops listening on UDP 137, 138 and TCP ... Actually you CAN do these if you DNS works. ...
    (microsoft.public.windows.server.general)
  • Re: DNS and UNC name resolution
    ... doesnt that UNC requires netbios? ... Doug Sherman wrote: ... even if NetBIOS is disabled you can resolve the name with DNS. ...
    (microsoft.public.win2000.networking)
  • Re: UNC-Pfade ohne Netbios ?
    ... > deaktiviere NetBIOS over TCP im Geraete Manager und Du kannst Dich ... > nicht mehr per UNC mit NetBIOS Namen connecten! ... hab das mal alles durchprobiert aber warum nur mit Netbiosnamen Jens? ... > ein UNC Name kann nur per DNS aufgeloest werden, ...
    (microsoft.public.de.security.netzwerk.sicherheit)
  • Re: TCP/IP NetBIOS Helper, WINS Tab, Netbt.sys
    ... running, with a working DNS implementation, I cannot access a share via unc ... If I then disable the NetBios stuff on the WINS tab, ... netbios names to access the unc share either... ... Actually you CAN do these if you DNS works. ...
    (microsoft.public.windows.server.general)