WNetAddConnection3 - ERROR_BAD_NETPATH

  • I can't connect TO the netdcu8 using \\ip addr and I can connect FROM the netdcu8 using WNetAddConnection3. WNetAddConnection3 returns ERROR_BAD_NETPATH. "net use \\10.0.0.1\temp" is also not working.


    What I'm doing wrong?


    NETRESOURCE res;
    memset(&res,0,sizeof(NETRESOURCE));
    res.dwType=RESOURCETYPE_DISK;
    res.lpLocalName=NULL;
    res.lpProvider=NULL;
    res.lpRemoteName=L"\\\\1.1.1.16\\Temp";
    WNetAddConnection3(NULL,&res,L"xxx",L"Administrator",0);


    Steffen

  • I still can't connect TO or FROM the netdcu.


    The portscan shows that there is no smb server running. This means there is no service to connect TO the netdcu. How do I enable the smb service?


    Steffen

  • Hello,


    access from NetCU to your PC should work without problems.
    Example: net view fsserver2
    You can not use net xxx with ip address.
    Access from PC to NetDCU is not working. SMB server is not implemented on NetDCU. If you want to access NetDCU by ip address I suggest using ftp server.
    Regards
    Holger

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.