The moose likes Developer Certification (SCJD/OCMJD) and the fly likes host Name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "host Name" Watch "host Name" New topic

host Name

dave wav

Joined: Apr 04, 2002
Posts: 9
Hello all,
I have a question about host name. what the other host name could be except the localhost?
How do I find the host name and port number if I run my application on different machines?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

You can always run ipconfig in a DOS window, if you are using Microsoft. this will give you the IP address. As far as port. If you are using the default it is 1099, otherwise you are telling it what port to use already, so you should know that number.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
dave wav

Joined: Apr 04, 2002
Posts: 9
Thank you mark, I'll try it.
I agree. Here's the link:
subject: host Name
jQuery in Action, 3rd edition