we need to set the port properly in the parse_ip helper