This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "host Name" Watch "host Name" New topic
Author

host Name

dave wav
Greenhorn

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?
Thanks,
dave
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
dave wav
Greenhorn

Joined: Apr 04, 2002
Posts: 9
Thank you mark, I'll try it.
dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: host Name
 
Similar Threads
How to get host alias name..?
How to get host alias name..?
internal or external request.
virtual host in tomcat
Socket not connected when using host ip address.