Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Not another programming but

Not another programming but

Scheduled Pinned Locked Moved The Lounge
phpmysqlperformancehelpquestion
7 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alex barylski
    wrote on last edited by
    #1

    How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

    C Z B S S 5 Replies Last reply
    0
    • A alex barylski

      How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

      C Offline
      C Offline
      Chris Ormerod
      wrote on last edited by
      #2

      The IP Addresses you are trying are probably the local (private) ip addresses. What you need to do is setup the router to "route" your public IP address to the PC that is hosting your website. When it is all setup the following will be true: 1. From the PC itself you could access the Web Site using "LOCALHOST" 2. From other PCs in the network you could access the website using "192.168.0.xxx" (or whatever your internal IPs are) 3. From the outside world (your friends) they could access using your public IP address - most likely starts with anything BUT 192.168.xxx.xxx In regards to docs to help you figure it out, the manufacturer of your router or your ISPs helpdesk might be the best bets. (of course router configuration isn't easy and you could completely stuff up your internet connection) - Have fun :) Chris.

      N 1 Reply Last reply
      0
      • A alex barylski

        How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

        Z Offline
        Z Offline
        ZoogieZork
        wrote on last edited by
        #3

        See my reply to a post in the Web Development forum: http://www.codeproject.com/script/comments/forums.asp?msg=710847&forumid=1640#xx710847xx[^] - Mike

        1 Reply Last reply
        0
        • A alex barylski

          How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

          B Offline
          B Offline
          Brandon Haase
          wrote on last edited by
          #4

          You need to change the router's DMZ configuration or port 80 forwarding to point to your web server's ip address. Check your router's manual to see if you can change these settings. Another hit related to this... sounds like your router is set up to use DHCP (automatically assigns out ip addresses when computers connect). If you don't specify a "hard" ip address in your web server's tcp/ip settings and point the router to that ip, a power failure or restart of a few computers can cause the addresses to be reassigned. When this happens, your router will likely end up pointing web traffic to the wrong box.

          1 Reply Last reply
          0
          • C Chris Ormerod

            The IP Addresses you are trying are probably the local (private) ip addresses. What you need to do is setup the router to "route" your public IP address to the PC that is hosting your website. When it is all setup the following will be true: 1. From the PC itself you could access the Web Site using "LOCALHOST" 2. From other PCs in the network you could access the website using "192.168.0.xxx" (or whatever your internal IPs are) 3. From the outside world (your friends) they could access using your public IP address - most likely starts with anything BUT 192.168.xxx.xxx In regards to docs to help you figure it out, the manufacturer of your router or your ISPs helpdesk might be the best bets. (of course router configuration isn't easy and you could completely stuff up your internet connection) - Have fun :) Chris.

            N Offline
            N Offline
            nssone
            wrote on last edited by
            #5

            Chris Ormerod wrote: 3. From the outside world (your friends) they could access using your public IP address - most likely starts with anything BUT 192.168.xxx.xxx Like what you get from www.whatsmyip.org[^]?


            Who am I? Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design. Main career interest include: Multimedia and game programming. Working on an outside project: A game for the GamePark32 (GP32) portable gaming console. My website: www.GP32US.com

            1 Reply Last reply
            0
            • A alex barylski

              How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

              S Offline
              S Offline
              Sam Woodward
              wrote on last edited by
              #6

              It is the router, as explained by other posts here. To find out what your "outside world" IP address is another useful website is: http://checkip.dyndns.org[^] For configuration of port forwarding, your router itself probably has address 192.168.0.10, 192.168.0.50 or somthing similar. SamW

              1 Reply Last reply
              0
              • A alex barylski

                How does a router work? I share hi-speed with three other computers in my house all of each are connected to THE router. The reason I ask I because...i've installed MySQL/PHP on one box and host my web site from that computer. If I try localhost on that machine it works fine...if I try xxx.xxx.xxx.xxx IP address (that I get from ipconfig) it also works...if I got to another machine and try that same IP it works there too, but when anyone outside the router tries...like a friend...then don't get access...so I'm assuming it has something to do with the router... each node on my LAN in my house IP address differs by only the last digit and by one... Why is the router doing this...? Is it even the router? Anyone know of any docs that might be of help? Thanks :) The word of the day is legs, let's go back to my house and spread the word ;P

                S Offline
                S Offline
                Steve Mayfield
                wrote on last edited by
                #7

                Linksys has GPL Code available for download for some of their products including their Wireless Routers and Access Points GPL Code[^] Note: These downloads are HUGE (for example - the download for the WRT54G Version 2 is 134MB!) Steve

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups