O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required