Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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'm working on my desktop computer. On this machine I also run Tomcat for my Java development so that I can visit my local address:

Now I go to and get my IP lets say it is:

Now what I want is that: I go to another PC (not on my LAN) or any PC around the world connected to Internet and type the following address:


this should show me the same page that I can access locally from http://

Is this possible?

share|improve this question

migrated from Jan 2 '13 at 3:14

This question came from our site for professional and enthusiast programmers.

Yes it's possibile, did you tried it? – Atropo Dec 28 '12 at 12:03
up vote 4 down vote accepted

Yes, it is possible. It is called "Port Forwarding". - is your public IP address. - is your private IP address on the LAN.

Very good articale with pictures is here:
How to Forward Ports on Your Router

share|improve this answer

Yes it is, even though this is not programming related and you should ask on superuser.

What you need to do is forward your 8080 port through your router. if you're IP changes (you have a dynamic IP or a static IP, this is determined by your ISP) you can get a host name from dyndns and set up your router to update dyndns with your new IP when it changes. this will allow you to access your application like so:

Alternatively, you can rent a hosted server and a domain name.

share|improve this answer

Please look into the following article which expains you about the static and dynamic ips you need to have static ip or a domain name to host your app so that you can access it publicly. hope the link helps you

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .