0

I would like to be able to access my apache webserver from outside of my LAN. I have my config files setup so that I am able to access my server through localhost/ and localhost:8181/ (all I did was add 'Listen 8181' in ports.conf) when I'm connected to my LAN.

My apache web server is hosted on a VirtualBox machine with Ubuntu. The virtual machine's network settings are set to 'Bridged Adapter' and is attached to my wireless adapter. I am able to access the web server from other machines within my LAN (virtual machine, host computer, phone).

Ideally I would want to just use the external IP with port 8181. So I would be able to just enter 123.456.7.89:8181 and access the home page. I am not concerned with a domain name as of yet. My end goal is just to have something only a few people can access. Also if anyone has any good information on web server security as I'm sure it will be a good next step for this endeavor.

1 Answer 1

1

You just need to forward port 8181 on your router to your server.

5
  • I tried forwarding port 8181 to the server. I also tried forwarding port 8181 to server port 80. Still unable to access it. I have also restarted the apache service after each change. Could I be missing something in my config files? May 7, 2013 at 7:06
  • I have absolutely no idea why that would not work.
    – Autumnal
    May 7, 2013 at 7:14
  • Could my service provider possibly be blocking this access even though I am forwarding it? May 9, 2013 at 4:50
  • This may be the case. Just checking though, might you have a dynamic ip and it has changed?
    – Autumnal
    May 9, 2013 at 6:04
  • My external IP seems to remain the same. At least it's been the same for the past couple months. I did manage to get this to work. I had to set my network settings for my virtual machine to be attached to 'NAT' instead. Then I had to forward ports from my router to my host comptuer. Then set inbound rules on my Windows Firewall. Then finally set port forwarding for my virtual machine to point to whatever ports I needed for the apache server. Meh, I should probably document this... But yeah you were correct, I just had to forward ports on my router. I just had my settings wrong. May 9, 2013 at 8:39

You must log in to answer this question.

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