Now connects to a given address string instead of a port number.

The unit tests will need to be updated later on to run against the same changes to the socket component.