GETTING A TCP/IP PORTNUMBER FOR THE CONNECTION

sudha.akshayakumar@sabre.com
Mon, 02 Nov 1998 16:08:10 -0800

Hello there,

I am trying to write a Java TCP/IP socket program.

I am just wondering whether it is possible to get the port number, by
specifying just the host name. I think there is a function to get the
hostaddress by specifying the host name. But not the port number.

If you could please help me, that will be great.
Thanks,
-SA