einicher.net

The code must do the talking

Calling nodeJS APPs via IP:Port stopped working after Ubuntu Upgrade

8. August 2018

After i upgraded my server to Ubuntu 18.04 and installed iRedMail suddenly all my nodejs scripts that were listening to a port with http server were no longer accessable by calling them directly with the ip and port (for example http://5.45.98.78:8080). They were just loading forever until the browser terminated the request due to timeout.

I did not find anything about that problem and had not much experience on firewalls and ports and that stuff, but after a lot of research and trial and error the solution was quite simple: you now have to open the port with iptables like this:

iptables -A INPUT -p tcp --dport 8080 -j ACCEPT

Leave a Reply

Your email address will not be published. Required fields are marked *