script: get the ip and port number (experiment for a script at work)