obtain port information