1

I have the latest version of Apache Lounge, and I want to make it accessible to the other people. My Website IP is 192.168.0.61, and in httpd.conf these are the settings I added

Listen 192.168.0.61:80
ServerName 192.168.0.61:80

My virtual host settings are

<VirtualHost 192.168.0.61:80>
ServerName:192.168.0.61
ServerAlias:192.168.0.61
</VirtualHost>

I am running Windows 10, with a century link router. I have forwarded the port 80.

2
  • 1
    If you're forwarding port 80 on your external address to this internal IP address, it sounds like you've already made Apache publicly available at your external IP address. Typically you would also connect your domain name to your external IP address based on dynamic DNS. Is that the part you're asking about? Do you have a domain name? – Stephen Ostermiller Mar 10 at 2:45
  • My router won't let me forward my external address, and I've been trying to get a domain but I don't have on. I have a static ip btw – Unknown1789 Mar 10 at 3:41
2

It is public as soon as it becomes accessible from a public address. All you need is to forward a port from your gateway to your local machine.

You need to find out your external IP address. It could be static in which case, it will not change which makes things easier or it could be dynamic. In any case you have to configure your gateway to accept an incoming connection and forward it to an internal IP address and port. The most common is to forward port 80 which is the default for HTTP to port 80 on your webserver.

External visitors only need to access: http://x.x.x.x/ to reach your website, where x.x.x.x is your external IP address. You can even forward a different port as some internet providers block certain ports. Visitors will then have to access the site by using http://x.x.x.x:port/ where port is the one you forwarded.

Be sure that your local computer does not have a firewall rule to block port 80 though! The gateway can forward a port but your local computer must accept the connection.

9
  • is the external ip my private or public? My router won't let me forward my public ip because x.x.x.x is not a valid ip – Unknown1789 Mar 10 at 14:41
  • When you browse to whatsmyip.com that will show you your external IP. It must be a public address for you to access the internet as response need to be sent to a public address. – Itai Mar 10 at 15:43
  • My router doesn't let me forward the external ip, it keeps saying the it's not a valid ip, what should I do? I have port forwarded my internal ip, but I can't forward my external ip. – Unknown1789 Mar 10 at 17:46
  • Unfortunately, I don't know that brand of routers but some times it is called something else like 'virtual server' or 'services'. Regardless you have to find a way to get a connection on your public address to reach your local server. If your router cannot do it, then you will need to use an external service to do tunneling which is when you connect out to an third party server and that one reroutes connects to it by others back as responses in your outbound connection. – Itai Mar 10 at 18:10
  • It's a lot of effort for something that most routers can do, so maybe you will have yourself time and headaches just with a router upgrade. If cost is an issue, then you can look online for custom open-source router firmware that replaces the one that came with the router but allows more more features (while voiding your warranty, so this is a learning experience rather than a simple workaround). – Itai Mar 10 at 18:12

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.