Minor tweaks.

Uses command line arguments instead of in-script variable for IP:Port
and exits script if cannot connect to a client.