The net API provides support for TCP connections and listening ports. The methods from this API should always be used rather than the Java standard ones because they take advantage of the user's connection preferences to support UPnP routers, SOCKS5 proxies, preferred port settings, etc.