Choosing the Host and the Port :
We must at least specify the remote host and port to connect to.
The host may be specified as either a string like \"utopia.poly.edu\" or as an InetAddress object.
The port should be an int between 1 and 65535.
Socket webMetalab = new
We cannot just connect to any port on any host. The remote host must actually be listening for connections on that port.
We can use the constructors to determine which ports on a host are listening for connections.