Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a web application in netbeans with a apache tomcat server. I want to be able to acces the server from the web. I am behind NAT, will the project be accessible? From my computer i access the project with http://localhost:8084/equinox/ , from a different network will I be able to access this website if I change localhost with the external IP or is there something more I should do.

share|improve this question
up vote 3 down vote accepted

You will need to make sure the following are true:

  1. Tomcat is bound to an IP address that isn't just localhost. Ie. it must be able to accept remote connections

  2. You configure the NAT to forward an external port to the correct IP address and port that your tomcat is running on

  3. You configure whatever firewall that is in the way to allow TCP traffic to/from this host on that port.

share|improve this answer
How can I make the first thing true. What to do? – Borut Flis Aug 27 '12 at 21:39
if you do a netstat -tan | grep 8084, you should be able to see if tomcat is listening on` (which you don't want) or which you probably do want. If the former, you'll need to configure the address part of the HTTP connector in your tomcat config file. See – growse Aug 28 '12 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.