this post was submitted on 11 Aug 2025
15 points (100.0% liked)

techsupport

2923 readers
22 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 2 years ago
MODERATORS
 

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.

top 6 comments
sorted by: hot top controversial new old
[–] dataprolet@lemmy.dbzer0.com 1 points 17 hours ago

I think this is what you are looking for?
https://github.com/fosrl/pangolin

[–] thatcrow@ttrpg.network 1 points 21 hours 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;
...

[–] sainth@lemmy.world 1 points 23 hours ago

Most VPNs don't allow port forwarding, and if they do it's a random port that changes frequently. So you'd need a method to tell people the new port. Also, you typically want to use SSL so you'll have to use self signed certs. Though interestingly LetsEncrypt recently started testing certs for IP addresses:

https://letsencrypt.org/2025/07/01/issuing-our-first-ip-address-certificate

[–] Blaster_M@lemmy.world 1 points 23 hours 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.

[–] capuccino@lemmy.world 1 points 23 hours ago (1 children)

I've never done this before, but I think you could if you use a DDNS updater

[–] onslaught545@lemmy.zip 1 points 22 hours ago* (last edited 22 hours 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.