I created a server that can receive data from any interface. This code runs perfect, because I´ve been using it for three months. But eventually I can´t connect to this port, it is only possible to reach it from 127.0.0.1.
I have done a netstat and I can see that it is all ok:
tcp 0 0 0.0.0.0:50010 0.0.0.0:* LISTEN
The only different thing that I did is to upgrade to legato 16.10.3, but then I have downgrade to 16.10.1 and is still not working.
the distribution with 16.10.3 is a bit more secure by default and doesn’t allow much connections from the ethernet to the target.
The firewall (iptables) has been configured with pretty tight default rules.
You need to update iptables rules in /etc/iptables/rules.v4 (or/and .v6 for IPv6) to list the ports that you want to allow.
In your case I assume it would look something like:
# Allow TCP port 50010 for app X
-A INPUT -i eth0 -p tcp -m tcp --dport 50010 -j ACCEPT