how to access localhost(xampp) from other computer

31,501

If you're trying to access your local XAMPP from another computer on your local network, you'll need to use a local ip address. Likely something like 192.168.x.x. (on a Windows box, you can type 'ipconfig' into a command prompt to get this IP)

If you're trying to access from outside your local network, you'll need to port-forward port 80 through your router to the computer that is running your XAMPP.

Share:
31,501
Alfred
Author by

Alfred

About me ?? ha ha ha.

Updated on May 31, 2020

Comments

  • Alfred
    Alfred almost 4 years

    I have installed XAMPP on my computer.I want to access my localhost when typing my ip address in another computer.But when i type my ip address it takes me to my modem settings page.Please help me.(I am using the ip address from whatismyip.com)

    • chaimp
      chaimp almost 12 years
      Are you behind a router?
    • Shiplu Mokaddim
      Shiplu Mokaddim almost 12 years
      Where does this another computer reside? in Internet or in Local network?
    • Alfred
      Alfred almost 12 years
      yes, i am using Airtel broadband.
    • Alfred
      Alfred almost 12 years
      The other computer resides in Internet.
    • Shiplu Mokaddim
      Shiplu Mokaddim almost 12 years
      Aha. Then you need to forward 80 port of your computer in the modem.
    • Shiplu Mokaddim
      Shiplu Mokaddim almost 12 years
      what is the Name and Model of your modem?
    • HamZa
      HamZa almost 12 years
      Well there are a lot of possibilities out there, you should google it first and when you encounter a problem you should post it somewhere on stackexchange, because stackoverflow is more code related than this kind of issues ! btw if you have a dynamic IP and you want to let your friends access your webserver then you should also take a look at www.no-ip.com and if you're behind a router checkout portforward.com ...
  • MimiEAM
    MimiEAM over 11 years
    dont just copy someone else answer without any link to itgiving them credit stackoverflow.com/a/823124 that's just dishonest !