this post was submitted on 18 Nov 2023
1 points (100.0% liked)

Self-Hosted Main

515 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I have a server in my home and use it normally with my custom router setup. but I want to do the same in other place where I'm not allowed to modify the main router

How can I expose a port to internet in this case?

P.D: I want to use my laptop as a portable server; connect it to my mobile hotspot and go, I think that the solution will be the same for both cases

Thanks in advance

top 7 comments
sorted by: hot top controversial new old
[–] JDubbleu@programming.dev 1 points 11 months ago

Use a P2P VPN like ZeroTier. I use it even when I have router access because I'm hyper paranoid about exposing anything to the open Internet.

[–] thekrautboy@alien.top 1 points 11 months ago

If you cannot forward a port in your router, then you need to run a tunnel to the outside. Look at VPNs, like Tailscale/Headscale, plain Wireguard and Cloudflare tunnels etc.

[–] tschloss@alien.top 1 points 11 months ago

Use an outbound tunnel like the others recommended already.

For curiosity: a mobile hotspot in my mind is a device connecting to Internet via mobile data (LTE, 5G etc) and offering a WLAN. In this case this is your router. But mobile provider often offer no public reachability at all - in which case you are back to the tunnel.

[–] jbarr107@alien.top 1 points 11 months ago

This is my policy:

For publicly accessible services like a website, I use a cloudflare tunnel.

For restricted access to just a few users, I use a cloudflare tunnel and a cloudflare application to manage access authentication.

For my exclusive restricted access to the infrastructure, I used tailscale.

[–] tech2but1@alien.top 1 points 11 months ago

Zerotier, or any other VPN service that is outbound/cloud hosted.

[–] qwertyvonkb@alien.top 1 points 11 months ago

This question has been answered many times now with multiple solutions, in fact so many times that Google has decided to dedicate the whole search engine to just display solutions for this very common question.

[–] vrgpy@alien.top 1 points 11 months ago

If you have IPv6 and don't have a firewall you could have acces directly to your server.