Port numbers are assigned in various ways, based on three ranges: SystemPorts (0-1023), User Ports (1024-49151) Dynamic and/or Private Ports...
Test-NetConnection -ComputerName remote-server -Port port or Test-NetConnection -ComputerName qa-api.cordero.me -Port 443...