i m running the server programme on different machines and the ip of server changes according to the machine. how can i detect the ip and port of server programme