Rahul Ahirrao Rahul Ahirrao - 1 year ago 110
Java Question

is static ip important for socket programming java?


I am confused about 127.0.0.1 and port no for socket programming.
If I a have domain name then there is no importance of static ip address. Anyone please help for this.

Answer Source

Socket Programming does not require that you only work with static IP address. You can write code using localhost or 127.0.0.1. If you know the domain name of server, you can use that as well. You can also use the dynamic IP which most internet users get.