This is my understanding as well. net view shows the NetBIOS devices not the WSD devices.I don't think net view supports WSD. Explorer shows my router and reports discovering it through WSD, but net view doesn't show anything but my PC itself.
Raspberry PI, Slackware both are visible in Windows Explorer with shown shares.I don't think net view supports WSD. Explorer shows my router and reports discovering it through WSD, but net view doesn't show anything but my PC itself.
Raspberry PI, Slackware both are visible in Windows Explorer with shown shares.
Asus is shown in Windows Explorer, but after click on it, the error appear. See attached picture.
smb.conf - "browseable = yes" in global and share section.
The problem is when you do not specify the server IP address. e.g.:I 'm sure that net view supports WSD, I use it for a long time. You can deploy my system which can be deployed on both Asuswrt and Asuswrt-Merlin, https://github.com/JACK-THINK/SCRIPTS-BOOTLOADER-FOR-ASUS-ROUTER, and install samba4 addon in it. I'm sure you can find your router in net view in Windows 10.
net view
You get the point! I'm so sorry for I didn't catch it before.The problem is when you do not specify the server IP address. e.g.:
Code:net view
Where did that "Asus" name came from? Is it really your router's hostname?
admin@Asus:/tmp/home/root# cat /opt/etc/samba/smb.conf
[global]
browseable = yes
dns proxy = no
workgroup = doma
netbios name = Asus
server string = Asus
C:\Users\zd>net view \\Asus
System error 53 has occurred.
The network path was not found.
C:\Users\zd>net view \\10.200.200.1
Shared resources at \\10.200.200.1
Asus
Share name Type Used as Comment
-------------------------------------------------------------------------------
bck Disk Z:
The command completed successfully.
My guess would be that you don't have DNS configured correctly on the client or wsdd2 is not working. What is the exact error message you get from the failing ping?Interesting: ping asus (this router) - no reply, ping linux machine - reply.
ping by IP number, both reply.
I do not have any data in hosts file on Windows machine where I'm testing connectivity.
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
ping zoneminder
Pinging zoneminder [10.200.200.99] with 32 bytes of data:
Reply from 10.200.200.99: bytes=32 time=88ms TTL=64
Reply from 10.200.200.99: bytes=32 time=305ms TTL=64
Reply from 10.200.200.99: bytes=32 time=221ms TTL=64
Reply from 10.200.200.99: bytes=32 time=32ms TTL=64
Ping statistics for 10.200.200.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 32ms, Maximum = 305ms, Average = 161ms
ping asus
Ping request could not find host asus. Please check the name and try again.
ping 10.200.200.1 - IP address of Asus router
Pinging 10.200.200.1 with 32 bytes of data:
Reply from 10.200.200.1: bytes=32 time=11ms TTL=64
Reply from 10.200.200.1: bytes=32 time=12ms TTL=64
Reply from 10.200.200.1: bytes=32 time=11ms TTL=64
Reply from 10.200.200.1: bytes=32 time=13ms TTL=64
Ping statistics for 10.200.200.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 11ms, Maximum = 13ms, Average = 11ms
The first ping is to my linux box, the second one is Asus RT-AC86U by name, the last by IP.
The machine where ping was executed is Windows 10 Ent. (VPN from work) with empty hosts file:
I get the same results on home network (local LAN).
This points to Asus, not else, as linux machine is visible by name.
wsdd2 from Asuswrt-Merlin just broadcasts the value of 'nvram get computer_name' without fetching any value from /etc/smb.conf or /opt/etc/samba/smb.conf, even there is no /etc/smb.conf.
void get_smbinfo(struct endpoint *ep)
{
#define __FUNCTION__ "get_smbinfo"
char buf[256];
FILE *fp;
if (!netbiosname)
netbiosname = malloc(HOST_NAME_MAX + 1);
if (!workgroup)
workgroup = malloc(15);
strcpy(netbiosname, "");
strcpy(workgroup, "");
if (!(fp = fopen("/etc/smb.conf","r"))) {
ep->_errno = errno;
ep->errstr = __FUNCTION__ ": Can't access smb.conf";
goto exit;
}
while (fgets(buf, sizeof(buf), fp) && (!*netbiosname || !*workgroup)) {
if (!*workgroup)
sscanf(buf, "workgroup = %14[^\n]s", workgroup);
if (!*netbiosname)
sscanf(buf, "netbios name = %16[^\n]s", netbiosname);
}
fclose(fp);
exit:
/* Set defaults if needed */
if (!*netbiosname)
strncpy(netbiosname, hostname, 16);
if (!*workgroup)
strcpy(workgroup, "WORKGROUP");
#undef __FUNCTION__
}
admin@Asus:/tmp/home/root# nvram get computer_name
Asus
admin@Asus:/tmp/home/root# cat /opt/etc/samba/smb.conf |grep netbios
netbios name = Asus
admin@Asus:/tmp/home/root#
admin@Asus:/tmp/home/root# /opt/etc/init.d/rc.unslung check
Checking wsdd2... alive.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!