This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Singel server name" Watch "Singel server name" New topic

Singel server name

Chen Yanush

Joined: Oct 31, 2004
Posts: 26
Is there a way to define a fixed name to the Tomcat server, instead of using a deferent IP Address every time ( ?
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="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
I agree. Here's the link:
subject: Singel server name
It's not a secret anymore!