Tomcat, servlets & domain names

I

Ike

In order to run a Tomcat server to run servlets, I must have a registered
domain name. However, if I only have an IP address, what servlet container
would people here recommend in lieu of Tomcat (and what are the drawbacks
compared to Tomcat) ?

Thanks, Ike
 
M

Manish Pandit

No you don't need a registered DNS unless you want to host it on the
web.

You need a machine that can run tomcat. For localhost, you dont even
need an internet connection. You access it via http://<IP or
FQDN>:<port>

-cheers,
Manish
 
S

Simon Brooke

Ike said:
In order to run a Tomcat server to run servlets, I must have a registered
domain name.

No you don't. You can use the IP address of the machine, or you can resolve
a name to the IP address of the machine in your hosts file. What version
of Tomcat, and what operating system?

--
(e-mail address removed) (Simon Brooke) http://www.jasmine.org.uk/~simon/
;; Sending your money to someone just because they've erected
;; a barrier of obscurity and secrets around the tools you
;; need to use your data does not help the economy or spur
;; innovation. - Waffle Iron Slashdot, June 16th, 2002
 
S

Simon Brooke

Ike said:
Tomcat 5.0.28 and Windows XP

I can't help you very much with Windows, but certainly older versions of
Windows had a hosts file in \Windows\System or somewhere like that. It's a
text file, where each line comprises an IP address followed by whitespace
followed by a space-separated list of one or more names. The names in the
list resolve to the address; simple as that.

The address 127.0.0.1 is special; it is always a valid address for 'this
machine' and conventionally the name 'localhost' resolves to 127.0.0.1; so
even if your IP address is dynamically allocated by DHCP you can use
127.0.0.1 (or 'localhost', or another name you've set up for 127.0.0.1 in
your hosts file) for testing.

--
(e-mail address removed) (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; If you're doing this for fun, do what seems fun. If you're
;; doing it for money, stop now.
;; Rainer Deyke
 
I

IchBin

Simon said:
I can't help you very much with Windows, but certainly older versions of
Windows had a hosts file in \Windows\System or somewhere like that. It's a
text file, where each line comprises an IP address followed by whitespace
followed by a space-separated list of one or more names. The names in the
list resolve to the address; simple as that.

The address 127.0.0.1 is special; it is always a valid address for 'this
machine' and conventionally the name 'localhost' resolves to 127.0.0.1; so
even if your IP address is dynamically allocated by DHCP you can use
127.0.0.1 (or 'localhost', or another name you've set up for 127.0.0.1 in
your hosts file) for testing.

That host file on windows XP SP 2 resides here:

C:\WINDOWS\SYSTEM32\DRIVERS\etc\hosts

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
M

Mark Space

IchBin said:
That host file on windows XP SP 2 resides here:

C:\WINDOWS\SYSTEM32\DRIVERS\etc\hosts

But that won't help outside of his own system.

To the OP: Where did you put the DNS entry for your domain? Who is
doing DNS for you?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top