You 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 Socket("metalab.unc.edu", 80);
You cannot just connect to any port on any host. The remote host must actually be listening for connections on that port.
You can use the constructors to determine which ports on a host are listening for connections.