I have an old laptop running the latest version of Ubuntu that I use for projects. That laptop is connected to my WiFi router through a USB WiFi antenna. I have the default wireless card setup to share the USB WiFi connection through the hotspot feature in Settings.
Everything works fine with the hotspot part (i.e. I can connect to it and have internet access). The problem is I have a Raspberry Pi file server setup on my router’s network that I cannot connect to using the hostname on devices that are connected to my hotspot. When on the router WiFi, I can type in for example smb://raspberrypi.local/share into mostly any file manager. On my hotspot, it doesn’t connect unless I use the IP address of the Pi.
I looked into the
Everything works fine with the hotspot part (i.e. I can connect to it and have internet access). The problem is I have a Raspberry Pi file server setup on my router’s network that I cannot connect to using the hostname on devices that are connected to my hotspot. When on the router WiFi, I can type in for example smb://raspberrypi.local/share into mostly any file manager. On my hotspot, it doesn’t connect unless I use the IP address of the Pi.
I looked into the
/etc/hosts
file on Ubuntu but that only sets an IP address to a hostname. I could technically do that, but the Raspberry Pi doesn’t have a static IP address. I’ve searched Google for a little while, but nothing specific to my scenario comes up. Any ideas on how I could do something like “hostname forwarding”?