Can't access nodejs from outside network?

1.5k views Asked by At

I have a Fritzbox 7490 router and have port forwarded (i think) a port 8080.

This port is not open externally for some reason but is accessible through the router ip address.

I set up a nodejs express app that hosts html pages and listens on port 8080

app.listen(8080, '0.0.0.0', function() {
    console.log('Listening to port:  ' + 8080);
});

Then, i enter: routerip:8080 into browser and it works fine. But if I connect from an external source routerip:8080

I don't get any response.

Online port checkers are saying the address is not accessible, which leads me back to my port forwarding not working correctly.

Setting for Fritzbox port forwarding:

Name: HTTPS-Server Protocol: TCP Port to device: 8080 through port 8080 Port requested externally(ipv4): 8080

Enable sharing: True

It then gives me a IPv4 address in the internet with the same port 8080

Which i try, and connects locally, but not externally.

What am I doing wrong?

1

There are 1 answers

4
Snuffles On

This was a bit of a mission.

My isp was blocking port forwarding. Apparently I had a dynamic ip address, but the ip address wasn't changing... DHCP wasn't enabled. I tracerted the public ip address of the router locally and externally and was getting blocked by the isp.

I called, they said port forwarding was a security concern and said they couldn't help.

I double checked the tracert and thought about it for a while. Then called again, said it has to be you guys... They said to pay a little extra and said something about a network change and assigned a static ip. It then worked...

Bit pissed with the extra charge though...