How to access a computer over the internet through a router with a static IP

I have a static IP on my internet connection (IC). My Internet feeds directly into my router.  How do I access a particular computer through the router from the Internet?
garrickbradley660Asked:
Who is Participating?
 
m_walkerConnect With a Mentor Commented:
It will be close, but if you dont need IIS no need to do all that.  If you have your own app, just need to do the port forward.
Keep in mind that windows client OS restict the inbound ports to quit a low number (I can remember what it is bit is low).  So if you are expecting 500 inbound connections on port 2000 to 2500, it may not work.

As a side note, if you are running a server would you not just multi-tread a single server port so all inbound connections come into the one port, thus only one port on the firewall and all your clients.  I have no idea what you app is or the design, so this was just a comment.

the exact limits on what your firewall/router can forword word and how to do it will depend on the device.

0
 
akahanCommented:
What do you mean by "access"?  What do you want to do?  Copy files from it?  Remote desktop (so that you can operate the computer remotely as if you were sitting in front of it?)

To operate the computer remotely, it's easy and free to install Logmein ( http://www.logmein.com ) on the computer at home, and then you can "access" it from anywhere, without having to deal with port forwarding and other router issues.
0
 
garrickbradley660Author Commented:
I want to have a simple web server to do some software testing.  So the computer on my side needs to run a windows based web server.

I'd like to use Windows XP, XP Pro, or Vista.  Again, I don't need anything heavy. I'm just testing ideas.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
akahanConnect With a Mentor Commented:
OK, so on the computer, you'd just install whatever web server you want to play with.

On the router, you'd need to point port 80 (and, if you're using https:, port 443) to that particular machine.  So you'd give the machine a static IP address on the LAN (you can do that in Windows easily enough in the Networking/TCP IP settings), and then just set the router to forward incoming packets directed at ports 80 and 443 to that LAN IP address.

Then, when you're away from home, you'd connect to your machine's web server by going to

http://YOUR.WAN.IP.ADDRESS

Make sure to turn OFF "remote management" in the router, or set it to a port that's not port 80.  Otherwise, you'll connect to the router's management page rather than your web server.
0
 
m_walkerConnect With a Mentor Commented:
If all you want to do is have a test web server (port 80) single host,then even xp has a cut down version of IIS on it.  then out your router/firewall you will need to do a dnat/port map from the outside IP port 80 to the inside PC port 80 and allow "all".  

then if needed you could install apache on it for a better web server.

How you setup your firewall/router to port forward will depend on that device.

Under XP, you can setup iis
1. Start -> Control Pannel
2. Open "Add/Remove Programs"
3. Select Add/Remove Windows Components
4. Select IIS and go with all the defaults.
To edit it settings
1. Start -> Control Pannel
2. Admin Tools
3. IIS
set you web home/root folder and off you go.

You should be able to hit that web server via its IP.  If you want a host name you will need to set it up in a dns server somewhere.
0
 
garrickbradley660Author Commented:
For the instructions that you outlined using XP. Can I use these same instructions using Vista?  Also, if I want to use a range of ports from 2000 to 2500, can I configure the router to allow these ports to be accesses?  

Perhaps I misspoke.  I don't need port 80.  I am writing a client server application that will use TCP/IP communication and use a range of ports.  For testing, I will use 2000 to 2500.  I feel very comfortable programming applications, but I am new to true network programming.

Thoughts please...
0
 
akahanConnect With a Mentor Commented:
You can configure the router to forward whichever ports you want.  Forwarding port 2000 is done exactly the same way as forwarding port 80.
0
 
inbox788Connect With a Mentor Commented:
if you're not too worried about security, setting up your server as a dmz host is an easy way to get access from outside. unless the server is security hardened, i wouldn't use it in production, but for testing purposes, it's a quick and dirty method.
0
 
inbox788Commented:
btw, dmz host setting is on the router, not server.
0
 
garrickbradley660Author Commented:
I love this.  This is the first time I have asked a question and I love the fact that so many people responded to the question.  

Thanks Guys (and Gals)!!

Keep it up!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.