The last two constructors also specify the host and port you're connecting from.
On a system with multiple IP addresses, like many web servers, this allows you to pick your network interface and IP address.