File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Singel server 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 » Products » Tomcat
Bookmark "Singel server name" Watch "Singel server name" New topic
Author

Singel server name

Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Hi,
Is there a way to define a fixed name to the Tomcat server, instead of using a deferent IP Address every time (http://212.179.248.3:8080/MyWeb/useRegistration.jsp) ?
I would like to simply write my server name (http://rcy:8080/MyWeb/useRegistration.jsp) and then see my application through the internet.

Or is the only way to get a fixed IP Address is to pay´┐Ż
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
This is really a DNS question but there are two possible ways. The first is as you alluded to - get a static IP address from your ISP and/or get web account with a static IP address. You can have many names on this single IP address but the IP address will not change periodically.

If your ISP is like most you have a DHCP assigned address meaning that it can change periodically. If you want to map a name to this changing address, you will need something that updates a DNS server somewhere with your current IP address. I found this information to help when searching Google for "dynamic dns".


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Singel server name
 
Similar Threads
Tomcat not responding to 127.0.0.1
Different ways for Contex
localhost and Ip address
Can not run a servlet class
Apache2 Tomcat4