Hi, my ISP blocks port 80 so I can’t access my server from outside my local network. I’m trying to open port 8080 (or any other than the default ones) without success.
However port 8080 is not listed when I run netstat -an | grep tcp or nmap -sT -O localhost. Do I have do to any anything other than yunohost firewall allow TCP <port_number> to do the trick? My router configuration is ok.
Thank you for your answer. It should be easy indeed, but apparently isn’t working for me…I expect to access my server from outside my local network using another port like http://myserver.nohost.me:8080. I cannot listen to any other port other than the default ones even if the firewall says that they are opened.
Alright … but a program needs to be listening to port 8080 for this to work, sooo, I’d say more tweaking and tinkering is required Otherwise you’ll just see a blank page
I’ve made some progress by changing the port to 8080 on file /etc/nginx/conf.d/myserver.nohost.me.conf. Now my server is listening to port 8080 and I can access it from my local network using the new assigned port, but this is still not possible from outside my network. What am I missing?
I’ve modified my SHH port and it’s working fine from outside. XMPP is working as well. The only thing isn’t working is access via web. I’ve checked that my server is listening to port 8080 by using an open port check tool site.
My experience with modifying the HTTP or HTTPS ports to bypass this kind of limitation is not the right thing to do … Theroretically it’s doable, but in pratice it is a huge technical mess. Changing port 80 might work, but I found in the past that changing port 443 is more complicated because there are too many assumptions everywhere about this port (even sometime hard-coded stuff)
And then even if you succeed in changing this, you will have to tell all your user to access your server via https://yourdomain.tld:444/
And for instance if they (or you…) only type yourdomain.tld in the browser it won’t work … and even yourdomain.tld:81 won’t work : because yunohost will make a redirection to HTTPS … which happens to redirect to https://yourdomain.tld (without the custom port) so you need to fix those redirection as well
Not to mention you won’t be able to fetch LetsEncrypt certificates …
So imho you have those possible solution :
change ISP and choose one that does provide you with a decent internet connection, not just half of it
configure a VPN like those provided by the FFDN (or any VPN that does provide you with full control of the IP)
Thanks, Aleks. I currently have just two ISPs to choose from and none of them provide a decent internet connection. I’ve started looking at the VPN provided by the FFDN, but I think that distance might be a problem. I live in Brazil and getting a VPN based in France will significantly slow down my internet speed, right?