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 have created a web application in Eclipse, and a DB2 database server is running on my PC. I can access the web application through the address http://localhost:8080/LimsWeb

I used Team Viewer software to establish a remote desktop connection.

Can my friend somehow connect to my PC so that when he types the above URL in his browser he will be able to fetch the pages of the application?

I was able to do this by connecting with remote desktop mode. But in that case my friend was able to use the application which I created running on my PC only and in the window provided by Team Viewer. I want to configure it so that he can run the application on his own computer calling the given URL from his own browser.

share|improve this question

migrated from Jan 8 '10 at 9:31

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

This isn't really a remote desktop question--it's actually more of a general networking question. – rob Jul 22 '10 at 7:27
Just following up...have you had any luck getting it to work? – rob Jul 26 '10 at 21:56
up vote 1 down vote accepted

Connecting from the same LAN

If your friend is on the same local network as you, it's very simple: make sure any software firewalls on your computer are configured to accept connections from remote computers on port 8080, then have your friend replace "localhost" in your URL with your IP address or hostname--for instance, (assuming that is your IP address) or http://lims-pc:8080/LimsWeb.

Connecting over the Internet

But suppose your friend is somewhere else, and the Internet lies between you and him...then you have to do a little extra. You'll have to configure your firewall software just as you did for the LAN instructions, but you'll also need to do some additional network configuration.

Option 1: VPN

If you only want your friend to be able to connect to the web service running on your PC, the easiest solution is probably to set up a VPN. Some wireless routers have VPN support built-in (and with some others, you can install a version of DD-WRT with VPN support), but you can also use something like Hamachi or OpenVPN.

Option 2: Port forwarding/DMZ

If you have administrative privileges on your router (or know someone who does), you can also configure port forwarding or (even scarier) DMZ to allow outside computers to connect directly to your PC. As alemjerus mentioned, you can also set up a dynamic DNS service or some other DNS provider (e.g.,, to point to your Internet IP, so your friend can connect more easily without having to remember your IP address. But personally, I wouldn't recommend going this route, especially not if you happen to be in a corporate environment.

Using the right hostname/IP address

But that's only half of it. As you might have already guessed, your friend won't be able to connect to your computer via the address http://localhost:8080/LimsWeb, because "localhost" is exactly that--the local computer. Once you settle on an appropriate mechanism to make your computer visible to his, he'll have to use your LAN IP address or hostname (if you used a VPN) or your public IP address or hostname on the Internet (if you used port forwarding or DMZ).

share|improve this answer

It should not be complicated. First, you can install yourself something like service to tell your friend your current IP, then open all the firewall/router ports for outside access, and give your friend the address you've got, like

Another solution is to deploy your project on Web

share|improve this answer
how to deploy the project on web.the database server is on my pc only – robin agrahari Jan 8 '10 at 9:30
@robin: you would have to move the database to the hosted server, as well. – rob Jul 22 '10 at 7:18

You must log in to answer this question.

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