parse type, ip, port