Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

There is a Windows machine connected to Internet by NAT (no IP, no incoming connections). Is there any way to make local web-server on this machine accessible from Internet by static IP or domain?

Web-server: Apache + MySQL + PHP

P.S. I found only one solution: using Opera Unit with Web Proxy application, but there are some problems with COOKIES.

share|improve this question

migrated from stackoverflow.com Nov 2 '10 at 22:29

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

    
What version of IIS? –  XSaint32 Nov 2 '10 at 16:48
    
No IIS, just Apache –  SeniorDev Nov 2 '10 at 16:49
    
Can you arrange for ports to be forwarded to your web server? –  Cry Havok Nov 2 '10 at 22:38
    
Discuss this with your system administrator. –  John Gardeniers Nov 3 '10 at 1:06

1 Answer 1

As long as your router is receiving a public IP address on the WAN side you will be able to do it by setting up port forwarding, which tells your router, for example, "port tcp/8000 goes to private IP A.B.C.D:tcp/80".

You will test it by the address http://A.B.C.D:8000/ from a PC in another place of the Internet, not the same as your LAN, to be sure.

However, your ISP may be giving you a "dynamic IP address" which means that it changes every N hours or so. Tough luck to keep it stable. You might want to try a dynamic DNS service like changeip.

Also, your ISP may be "protecting" its network with a firewall, which will not let you set ports up like this. (It will let you, it it won't work).

Just consider this will NOT give you a highly available service.

share|improve this answer

Your Answer

 
discard

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.