I can't modify the router config and I want to access my server from internet reddit / selfhosted ---------------------------------------------------------------------- TheUnclePaul 路 2023-11-18 05:36 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 ---------------------------------------------------------------------- LeFlyingDragon 路 2023-11-18 05:42 You can try use cloudflare tunnels -- not exactly exposing a port, but much more secure 馃槑 ---------------------------------------------------------------------- Darkextratoasty 路 2023-11-18 05:52 Cloudflare tunnels will expose your service/port to the general public Internet, so it doesn't need anything installed on the client side. It's a good choice if you regularly change devices or want others to have access to your service. But if you want to access your stuff from just a few devices and don't want to give public access, something like tailscale or zerotier is probably a better choice. They'll require installation on the client devices, but they won't open your service up to the public. ---------------------------------------------------------------------- thekrautboy 路 2023-11-18 07:40 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 路 2023-11-18 09:04 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 路 2023-11-18 11:38 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 路 2023-11-18 15:15 Zerotier, or any other VPN service that is outbound/cloud hosted. ---------------------------------------------------------------------- qwertyvonkb 路 2023-11-18 15:47 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 路 2023-11-18 21:37 If you have IPv6 and don't have a firewall you could have acces directly to your server.