Add port parsing to web_client