0
0
At work, I can ping and SSH computers by either their IP or their SMB name.
If I try that at home (no, I am not trying to access the office internal network from home), then ping / SSH by IP address works fine, but SMB name fails.
(Just to clarify, hosts do show up in the smbtree and respond to pings by IP, just not by SMB name!).
At work there's a PFSense server managing the network. At home it's just a wireles router on a DSL line. All my devices on the home network are 192.168.1.x / 255.255.255.0 issued by DHCP.
The following is a sample from my home network.
user@computer:~$ smbtree -N
WORKGROUP
\\UBUNTU-PC computer server (Samba, Ubuntu)
\\UBUNTU-PC\print$ Printer Drivers
\\UBUNTU-PC\IPC$ IPC Service (computer server (Samba, Ubuntu))
\\FILESERVER fileserver server (Samba, Ubuntu)
\\FILESERVER\Storage
\\FILESERVER\Videos
\\FILESERVER\Photos
\\FILESERVER\IPC$ IPC Service (fileserver server (Samba, Ubuntu))
user@computer:~$ nmblookup fileserver
querying fileserver on 192.168.1.255
192.168.1.9 fileserver<00>
user@computer:~$ ping fileserver
ping: unknown host fileserver
user@computer:~$ ssh fileserver
ssh: Could not resolve hostname fileserver: Name or service not known
$ ifconfig
from my home PC
eth0 Link encap:Ethernet Endereço de HW xx:xx:xx:xx:xx:xx
inet end.: 192.168.1.10 Bcast:192.168.1.255 Masc:255.255.255.0
endereço inet6: xxxxxxxxxxxxxxx/64 Escopo:Global
endereço inet6: xxxxxxxxxxxxxxx/64 Escopo:Global
endereço inet6: xxxxxxxxxxxxxxx/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
@FranciscoTapia of which hosts(s)? I have two laptops, a file server, a raspberry PI, two smartphones, and a tablet. – That Brazilian Guy – 2015-05-22T13:19:04.000
What os do you have at work? Windows
ping
(and other winsock tools) can resolve names using smb multicast, WSD multicast, lmhosts or wins (Depends on Node Type). But **nixping
usesresolve.conf
(for DNS) oryp.conf
(for NIS) orhosts
file. It can't use SMB name – user996142 – 2015-05-22T13:35:31.643@user996142 Ubuntu at both home and work. No config files modified. – That Brazilian Guy – 2015-05-22T13:39:41.837
Try to run
nslookup <<COMPUTER_NAME>>
at work. I am sure you will get anwer from DNS server. That means you can access this server from work, but not from home. – user996142 – 2015-05-22T13:41:27.377@user996142 I do not want to acess a remote machine from home! – That Brazilian Guy – 2015-05-22T16:33:24.703