Server IP must be a LAN IP (Port Forwarding Netgear)

8,153

The simplest (but not only) configuration to address this is as follows: The outside of the router has a dynamic OR static IP (the IP the provider gives you). This is on the port facing the provider. The LAN ports (facing your network) all use DHCP. The destination computer (the Apache server) has a static IP set in the DHCP range. An example, if you are using the 192.168.0.0 network (192.168.0.0 through 192.168.0.255) for DHCP purposes, you would set the server IP address to something inside that range (say 192.168.0.128). Then configure the router to always hand out that address (192.168.0.128) to your server (you'll do this based on the MAC address). Set port forwarding in the router (port 80) to the IP address of the server (192.168.0.128). I would also recommend turning on NAT in your router. Also know that if your ISP does not assign you a static address you'll need a service like DynDNS to associate your IP address to a domain name. If you don't plan to use a domain name you'll have to check your IP address and find out what it is to give to people so they can access your web server.

Share:
8,153

Related videos on Youtube

rphello101
Author by

rphello101

Updated on September 18, 2022

Comments

  • rphello101
    rphello101 over 1 year

    I'm trying to set up a server (Apache) on my computer (fairly new to it). As I understand it, for it to be accessible to other computers, I need to forward port 80.

    When I try to forward the port though, I get the error:

    Server IP must be a LAN IP.

    I noticed in ipconfig that my default gateway is different than my wireless router. My computer is not hardwired, not on WiFi. Furthermore, I do not, at this point, have a static IP. I read that it should still work with a dynamic IP until it changes. Any ideas on what I can do?

  • rphello101
    rphello101 over 11 years
    Thanks. That's the kind of information I was looking for. It'd be great if, instead of casting downvotes, people might actually provide a little information