get ports and protocol from v1