I was hoping someone could advise on how to make it possible to reach the Web UI of Volumio while being connected outside of the local network via VPN?
The issue is, that whenever the Web is being accessed, it opens the socket connection that always tries to reach the server by the local LAN IP.
Which is, quite obviously, impossible in this scenario.
I’d like to do that to help my dad with the set-up of Volumio at his home while I’m located remotely.
The VPN connection is established via Wireguard using pivpn.
I found some related topics that are quite old and, unfortunately, had no replies at the time:
@nerd thanks much for responding.
Both Volumio and WireGuard are running bare-metal.
Just to make sure, in your example, is it the connection to Volumio Web that is installed on your remote server and you can access it from a client?
To add more context just in case:
My Raspberry runs the Wireguard server
Dad’s Raspberry runs Volumio and WireGuard client connection to my Raspberry
My laptop has WireGuard connection to my Raspberry as well
I’m trying to access dad’s Volumio from my laptop
Result:
Volumio page opens but is stuck with the spinning wheel
In the console, I see unsuccessful attempts to reach its server (dad’s Raspberry) using the local IP address of the dad’s Raspberry in his own local home network
In more detail, the Volumio dev team is against making it possible to reach Volumio directly by any address, except for the local ones.
However, they build a cloud service to reach a Volumio server externally via the proprietary website that is available for Premium users only but seems to do the job.
Got it. So it’s rather a different scenario, as, apparently, you connect to Volumio from the local network.
The trick I was trying to play was to establish a connection to Volumio externally through the VPN tunnel.
I briefly tried to read the .js code of Volumio and it gets the address for the socket/polling connections from the Volumio backend. Making it purposefully to call by the local unique address.
As I understood from the other threads here, it’s done to guarantee the right connections in the environments that have multiple Volumios on the same network.