1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Access Webserver on a 2nd Router

Discussion in 'General Network Security' started by cdikland, Feb 25, 2019.

  1. cdikland

    cdikland Regular Contributor

    Joined:
    Dec 7, 2013
    Messages:
    171
    Location:
    Ontario, Canada
    I am experimenting with a simple setup as shown below. PC2 is hosting an EventGhost web server. With the static route defined PC1 can access this server on PC2 without issue. My question is, can this same server be accessed from the WAN preferably without enabling port forwarding on the primary router??? What are my options??


    [​IMG]
     
  2. coxhaus

    coxhaus Part of the Furniture

    Joined:
    Oct 7, 2010
    Messages:
    2,667
    Location:
    texas
    Private IP addressing is not routable on the internet. Your server can only be accessed from the internet WAN side without going through NAT if you have a real internet IP address for your web server. You did not post what your internet WAN IP is.
     
    Last edited: Feb 25, 2019
  3. cdikland

    cdikland Regular Contributor

    Joined:
    Dec 7, 2013
    Messages:
    171
    Location:
    Ontario, Canada
    Not only. If I add add port forwarding on the primary router to point to the secondary router, I can access this server.
    i.e.
    URL: WAN.eventghostserver.com:5000/?This.Is.A.Msg
    Enable Port Forwarding and set Primary router to route anything with port 5000 to 192.168.2.200 lan port 88
    Voila.....
    But like I said in my first post I am looking for an alternative to port forwarding

    Dont understand why I would????
     
  4. coxhaus

    coxhaus Part of the Furniture

    Joined:
    Oct 7, 2010
    Messages:
    2,667
    Location:
    texas
    Port forwarding is going from a public IP address to a private IP address so it should work. The only way you can route on your primary WAN is to use a public IP address. Internet routers all drop private IP addresses.

    The only reason I was interested in your primary WAN IP is make sure you were on the internet with a public IP address. If you are plugged into a lab some where then your primary WAN might not be a public IP address.