I have 25 machines in intranet and 1 of it is hosting a website . Website is accessible to every machine in intranet using the ip address . But how to make it visible to public ?

  • You need to tell us how your intranet is connected to the internet. Is it via a router, or does one of your machines have 2 network devices? – KevinM Feb 18 '13 at 7:50
  • It is connected via router and rest of the machines through switches which is further connected to the same router . – Gaurang Agrawal Feb 18 '13 at 7:55
  • Then you should be able to do it using the answer provided by @mauro.stettler below. Log in to the admin backend of your router and set up port forwarding. – KevinM Feb 18 '13 at 7:57

I'm assuming you use some router with NAT to connect to the internet?

If that's the case, your router needs to do a port forwarding from the public IP address to the private IP address of this server that hosts the website. You need port 80 for HTTP and 443 for HTTPS.

In case you want to point a public DNS name to your website, you will need to point it to the public IP of your router.

  • I made following changes in Router's Configuration - ---------- Server Name External Port Start External Port End Protocol Internal Port Start Internal Port End Server IP Address WAN Interface Remove ------------ Web Server (HTTP) 80 80 TCP 80 80 ppp0 I tried accessing using my Public Ip address but it isn't working . Any suggestions ? – Gaurang Agrawal Feb 19 '13 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.