Add settable ports for socket connect

In our test environment we are connecting through a proxy which isn't on port 80 or 443 so we require an interface to set the port number. This may or may not be worth merging in.