Skip to main content

2 servers, 1 IP, how to configure

Comments

5 comments

  • edenent
    You will need different http ports ect, CloudFlare is basically just reverse proxy to your server. If Server 1 is running a Web Server and Server 2 is running a Web Server off of 1 IP, can you see were conflicts would happen if both are trying to take request on port 80/443 ect from 1 IP address. You can do a 1:1 NAT and server 1 can be 80 and Server 2 can be 8080, but then you still have mail, Https, DNS and other functions that will run into port issues unless Server 1 is say mail server for both machines.
    0
  • cPanelMichael
    Hello, I recommend obtaining an additional IP address for use with the second server. Otherwise, it's going to require manual customization for each service to get it working, as mentioned in the post above. Thanks!
    0
  • max101
    I was able to get it working on a different port, but the user has to add :8080 at the end of the domain. Annoying. But since it's just for practice and only i know the domain, it's ok. I also found out i have 3 ips! My isp gives me 3 ips with my internet plan. So it's good news. The bad news is my router is not capable of configuring more than 1 static ip. Looks like i'm going to have to buy a switch/hub. thanks!
    0
  • edenent
    I was able to get it working on a different port, but the user has to add :8080 at the end of the domain. Annoying. But since it's just for practice and only i know the domain, it's ok. I also found out i have 3 ips! My isp gives me 3 ips with my internet plan. So it's good news. The bad news is my router is not capable of configuring more than 1 static ip. Looks like i'm going to have to buy a switch/hub. thanks!

    Most router can't, if you have a low end PC laying around with dual NIC's Intel or Broadcom you can use it and install pfSense and add your main IP to WAN interface, set your LAN up. After that you can create virtual ip's for your 2 extra out of your 3 total and do 1:1 Nat. cPanel with detect Nat Mode but requires extra tweaking. You can also run out to a Wal-Mart or a Bestbuy or whatever and get a cheap unmanaged 5 port switch and hook it in between your modem and your router, plug servers into it and give them static IP's. Attempt at diagram with lines. Not pretty but for testing purposes it should work. ---- Modem ---- - - ---- Switch ------------------ - - Server 1 - - Server 2 - - ---- Router ----- - - LAN
    0
  • max101
    update! i found an old hub at a used store for 3 bucks! its works! the hub has 4 ports, i now have 3 computers on 3 different ips, didn't even have to configure anything, awesome!
    0

Please sign in to leave a comment.