You can also specify a local port number,
Setting the port to 0 tells the system to randomly choose an available port.
If you need to know the port you're connecting from,
you can always get it with
Socket webMetalab = new Socket("metalab.unc.edu", 80,