The question says it all. I have a NAS which was working quite well for quite some time. For some or other reason I started using smb instead of ftp.
Now I can no longer access the configuration dashboard of the NAS. I am not sure what I messed up, but I do not know the IP address of the NAS anymore.
How can I find the IP address of the NAS?
You could scan your network to see where it is up, e.g.
where obviously you should change the network to your own. Then you'll get a list of devices which are up and running on current LAN.
To find your LAN IP you can use
ip addr
. If you are on WiFi the IP address will be near right toinet
on something likewlp2s0
network interface.If you want a sophisticated or permanent solution, Bonjour protocol may fit, you can see its implementation in Linux Avahi. So you can point to your NAS as hostname.local or use Avahi Discover to get IP's and all services published in the network. (printers, ftp, smb, ssh...)
Minimum installation for client side (your machine):
avahi-dnsconfd
listens to the publishing and passes them to resolvconf. So you can point to the server asnashostname.local
. as any other real public domain name. You can use it with http (firefox), samba share, ftp,...examples:
avahi-discover
&avahi-utils
, GUI & CLI, are the user interact tool. They are optional in case you want to list all services published on the network.Avahi Discover showcase
For NAS server side, if it is a Ubuntu base (Linux/BSD you can build source):
avahi-daemon
provide services publishing.In case you are using Commercial NAS, many of them support service publishing using Bonjour.
See Avahi (Wikipedia) or its official website.
With the
arp
command you can scan the network. It helps in case you know there is a NAS but you don't know the name: