Server Fault is a question and answer site for system and network administrators. 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

Hi I have designed a chat application using servlets and jsp. I do not like it to host on any web hosting sites. I wanna make my computer only as server and wanna make it accessible to the users of different network. Can anybody explain me how can this be achieved. I will be really thankful. I was said that use port forwarding how can this be solved using port forwarding?

share|improve this question

migrated from Apr 6 '10 at 17:34

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

In your case, I think you'd be well served by using Opera Unite. I believe you'll need to use the Web Proxy application.

You'll need to sign up for a free opera account, and then they'll give you a URL (something like, IIRC) that people can access your site from, whenever your computer is up and running. Using the Web Proxy will allow you to run whatever sort of web application you like.

share|improve this answer

The short answer is get a static IP address from your ISP and connect your computer directly to the Internet connection, configured with this IP. Then just give our your IP address and port number for your application. Of course that is a security risk so you will probably need to put a firewall in place to block all ports except the ones used by your application. If you are doing this on the cheap and cannot get a static IP but only have a dynamic IP, you will need to sign up with one of the dynamic DNS providers and use the host name they give you instead of the IP address. If your ISP firewalls the Internet connection for you, you will have to talk to them about opening up the port for your application. The directions for opening up a port vary by firewall model. If you need further help with a specific firewall, update your question with the specific model.

share|improve this answer

Well, if you have the server already configured and working in your machine then the only thing you should do is opening and forwarding the port on your router... The problem here is that every router has a different web interface, so introducing . Here you can find how to configure port forward in several routers. Configuring port forward is 3 things: public port, private address, private port. For instance if you want that the public service be in the 8080 port and your private address is and your private port 80, then you would have to configure:

8080 >

Another thing you'll have to be aware is regarding the public IP address. Most of the times your ISP will give you a dynamic IP, so from time to time it will change; the solution for this problem are services like or dynDNS. They are daemons that works on most of Operating Systems, and you can have a DNS which will change where is pointing to when your IP address changes. Also some times your router will let you configure this.

share|improve this answer

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.