cannot access my http://localhost remotely

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhing
    New Member
    • Oct 2006
    • 43

    cannot access my http://localhost remotely

    hiya everyone..

    i have php 5 and mysql 5 installed on my server...

    when i access http://locahost in my local server it goes well...

    but when i tried to access it using its ip (http://<ip>)
    the message is no route to host unable to retrieve....

    why is that so?

    looking forward to your replies guys...
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Originally posted by bhing
    hiya everyone..

    i have php 5 and mysql 5 installed on my server...

    when i access http://locahost in my local server it goes well...

    but when i tried to access it using its ip (http://<ip>)
    the message is no route to host unable to retrieve....

    why is that so?

    looking forward to your replies guys...
    Are you behind a router? If so, the IP actually belongs to the Router and you probably can't access your PC through it directly. You'd have to activate Port forwarding for Port 80, I guess. Google that for your Router if you don't know how to do so.

    If you aren't behind a router, where did you get your IP from? Your PC will have at least 2 IPs: An IP in the local network (normally something starting with 127 or 192 will be local) and one for the internet. A website like http://www.whatismyip.com/ will tell you that adress. (Or that of the Router, if you're behind one).

    If none of that helped, ask again!

    Greetings,
    Nepomuk

    Comment

    • farid1980
      New Member
      • Sep 2007
      • 2

      #3
      Hi,
      Actually am also facing the similar issue. Am able to access through my intranet IP but not from the internet. Could u pls tell me why is it so?

      regards,
      fareed

      Comment

      • bhing
        New Member
        • Oct 2006
        • 43

        #4
        sorry for the incomplete information ive given..

        i can ping its ip through intranet but when i try to access it through the web

        like http://<ip address>, it cant be found..

        is this with the apache problem?

        if it is, how to configure it?

        --thanks

        Comment

        • Nepomuk
          Recognized Expert Specialist
          • Aug 2007
          • 3111

          #5
          Originally posted by bhing
          sorry for the incomplete information ive given..

          i can ping its ip through intranet but when i try to access it through the web

          like http://<ip address>, it cant be found..

          is this with the apache problem?

          if it is, how to configure it?

          --thanks
          You're Computer will have a different ip on the intranet than on the internet. Therefore, you won't have success when trying to load the page from your intranet address when using the internet.

          It would be easier to help you, if you'd answer all questions I asked (or at least more of them - especially things like infos about the router, where you got the ip from etc.).

          Greetings,
          Nepomuk

          Comment

          • bhing
            New Member
            • Oct 2006
            • 43

            #6
            yes we are behind a router.. our ip starts w/ 61.9.x.x

            what should i do? i guess the port 80 is already open.. is it really the ip matter why i cant access the http remotely?

            Comment

            • bhing
              New Member
              • Oct 2006
              • 43

              #7
              also. i can ping its ip remotely but when i access it through http it cant be found

              Comment

              • bhing
                New Member
                • Oct 2006
                • 43

                #8
                ok.. i solved it already..


                i just disabled the selinux..

                hayyyyyy.. i found nothing in google about disabling selinux...

                grrrrrrrrrrrrrr

                Comment

                Working...