updating socket open to allow for port number change (collectd.conf)

If the user specifies a new server/port combination in the collectd.conf entry, we should use that port number when creating a socket.

This defaults to 4242 earlier in the script so if nothing is passed, the localhost:4242 entry is preserved.