update IP and Port global variables