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.
Socket Programming does not require that you only work with static IP address. You can write code using
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.