This is an automated archive.
The original was posted on /r/wireguard by /u/FlashLightning67 on 2024-01-14 07:38:03+00:00.
I’m not very knowledgeable about all this so apologies if I get anything messed up.
I just set up a WireGuard connection between my phone and my Ubuntu server. On the server I am able to access a self hosted site on the port 2000, so I can access it at localhost:2000. I can also access this on the same network from local-ip:2000.
I want to use the WireGuard vpn to be able to connect to this site from anywhere using my phone. However after setting it up, I don’t seem to be able to do this. Using the servers WireGuard IP doesn’t work, nor does the local ip or localhost. In my attempts to get it to work I managed to get it working with 0.0.0.0/0 as the allowed IP so I can access any website using the vpn, but I can’t find a way to access this locally hosted site. How can I set this up to work the way I want?