Picking an IP address
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.
Previous slide
Next slide
Back to first slide
View graphic version