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