I'm trying to set up an old Raspberry Pi to be a simple file server on a home network. I've mounted a couple of USB sticks to use as storage; The first will appear as storage that's visible on Samba and the second will be a backup of the first; every night it runs rsync
to back everything up.
It Pi it's self have an IP address that is dynamically allocated, so it will look something like 192.168.1.xx
I've almost got everything working the way I want it, except Windows 10 explorer won't connect to the samba share as \\my-pi\share
. If I use the Windows command prompt to ping my-pi
it sees the device and tells me the IP address. Knowing the address I can then connect to samba as \\192.168.1.123\share
As the Pi's IP address is dynamic this could change every time the system is rebooted, so I really do want to use the hostname.
My best guess is that I've got a setting wrong in /etc/samba/smb.conf
. I've gone through the documentation, but can't see the problem (not that I understand all of it).
\\192.168.1.123\share
. This thing is remembering the IP addresses is a pain, I'd still prefer to use host names. So the question becomes how to get other devices on the network to recognise the host name. I'm guessing from your reply that this is a Networking or Windows/Android problem? – Stormcloud Aug 09 '21 at 16:12