I’m able to use my VPN to distribute files via Soulseek/Nicotine+. Can I do this with its IP and port forwarding so people can connect to a website hosted on my machine from the internet?

I’m imagining they’d be able to connect with the basic IP:port address, but I’m really not even sure if it’s possible.

I’m looking into using NGINX for this. If something else is more appropriate, I’d love to know.

  • thatcrow@ttrpg.networkOP
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    I figured it out, and it surprisingly is possible.

    ChatGPT was able to walk me through it. The big issue I had was that I was trying to connect using my own machine, which does not work. However, trying to connect using my phone did work. I also had to bind my VPN’s local IP (it’s different than the one that displays in the app) for nginx to work.

    I could verify my VPN’s local IP with ip -4 addr show. It’s the entry with tun0.

    http {
    	server {
    		listen LOCAL_VPN_IP:VPN_PORT;
    		server_name  localhost;
    ...
    
    
  • Blaster M@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    If you setup a Tailscale and an NGINX reverse proxy or a port forward on a VPS, you can definitely have people connect via the VPS IP to reach your home server.

    • onslaught545@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      3 days ago

      Hmm, I’m going to give this a try on my Synology since I get a free ddns address.

      Edit: It works, although the DSM login page didn’t load. But, it takes forever to load on my LAN, and I didn’t want to leave it enabled for too long.