Lately we faced an issue where the communication from the remote client  to the sever was failing.  We used to bind our server to 127.0.0.1. Here is the why the communication failed…

127.0.0.1 is localhost address on the loopback interface. Only local process would be able to communicate as we saw in our application.  We saw that the local clients were able to communicate with the server. There are many places where we require such a restriction.

0.0.0.0 – Binding  to this port indicates that our server is listening to all configured IPV4 addresses on all the interfaces. On the downside, the server now would be accessible over the wide network which should be considered as a security threat especially if it is over internet.

Advertisements