Using Sockets

Use network services on other computers over the Internet by using sockets. A socket is the combination of an IP address and a port number. An IP address consists of 32-bits represented by four decimal values. Each decimal value is from 0 to 255 and is separated from the other values by periods. For instance, 204.71.177.66 is the IP address associated with the following computer name, http://www.yahoo.com. Computer names are also known as host names. The combination of the IP address and Telnet port 23 is a socket and looks like 204.71.177.66:23.

Note

You can get the IP address of any computer name with the ping command. The ping command is a UNIX command that is also supplied with the Microsoft Windows operating systems. For instance, ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.