Page 1 of 1

Can only access site from my network.

PostPosted: 08. April 2009 14:11
by anc96
I have just set up XAMPP and and I love it. My only problem is that I can only access it from my PC's internal IP when on that network. If I try using my external IP address, I get taken to my routers page. Does anyone know how I can make my external IP take me to my XAMPP site so I can access it from anywhere?

Thanks, Alex

Re: Can only access site from my network.

PostPosted: 08. April 2009 14:59
by jmack
Alex-

If I had to guess you need to do some routing with your...ehem...router. Have you set your router to direct all http (port 80) traffic to your local PC? Depending on your router you will have to attack this differently. It will look like:

Outside World -> your External IP -> your Router -> your PC -> xampp

Some things to remember:
1. If your PC doesn't have a static IP set on your router, I would suggest doing so. This will help keep your route working
2. Does your ISP block port 80? I doubt it since you are reaching your router, but many ISP's don't want you using port 80
3. Be sure to test this from OUTSIDE your house/work.
4. to route traffice through your router to your PC, look for things like "Port-forwarding".
5. Take a look at dyndns.org when you get things running. Your router may automatically have the capability to use this. Something for later...

I hope this gets you in the right direction,

jMack

Re: Can only access site from my network.

PostPosted: 08. April 2009 16:16
by anc96
its an old router. I have already tried forwarding ports 80 and 443 but still not working. I think i may need to redirect my enternal IP to localhost. Does anyone know how to do this?

Re: Can only access site from my network.

PostPosted: 08. April 2009 16:30
by Sharley
anc96 wrote:its an old router. I have already tried forwarding ports 80 and 443 but still not working. I think i may need to redirect my enternal IP to localhost. Does anyone know how to do this?
Here's a couple of links that may help:
http://portforward.com/
http://www.pcwintech.com/node/8

Good link for setting up a server on DSL or Cable:
http://www.dslwebserver.com/main/fr_ind ... /main.html

Re: Can only access site from my network.

PostPosted: 08. April 2009 18:05
by anc96
Sharley wrote:
anc96 wrote:its an old router. I have already tried forwarding ports 80 and 443 but still not working. I think i may need to redirect my enternal IP to localhost. Does anyone know how to do this?
Here's a couple of links that may help:
http://portforward.com/
http://www.pcwintech.com/node/8

Good link for setting up a server on DSL or Cable:
http://www.dslwebserver.com/main/fr_ind ... /main.html


I said I have already tried forwarding the ports as I know how, but it has failed. My external IP still takes me to my router page, not my XAMPP page.

Re: Can only access site from my network.

PostPosted: 08. April 2009 18:14
by Wiedmann
My external IP still takes me to my router page, not my XAMPP page.

You must make this access from outside your network.

Re: Can only access site from my network.

PostPosted: 08. April 2009 19:13
by anc96
I have tried re-installing but I got the same error as the first time I installed. Could this error have something to do with it?

Ports 80 or 443(SSL) already in use! Installing Apache2.2 service failed!

Re: Can only access site from my network.

PostPosted: 09. April 2009 09:07
by dravekx
anc96 wrote:I have tried re-installing but I got the same error as the first time I installed. Could this error have something to do with it? Ports 80 or 443(SSL) already in use! Installing Apache2.2 service failed!


First off, It's obvious you have little idea of what your doing. You cant use the following ports because they are predefined.. so stop trying to port forward them:

21: FTP (if you ever use or have one)
80: HTTP (if GIVES YOU INTERNET ACCESS)
443: HTTPS (it GIVE YOU SECURE INTERNET ACCESS)
3306: MYSQL (Usually used for your database)

need a list of common predefined ports? http://en.wikipedia.org/wiki/List_of_TC ... rt_numbers

This is a simple solution to a simple problem:

#1 SOLUTION: Go into your router and set your Computer for DMZ mode OR IP Passthrough. (Whichever is available)

OR

#2 SOLUTION: Setup your router with a port forwarding option to your PC. (Use something like PORT 8015) When you type in the address in your browser, type it like this: http://youripaddress:theportnumberyoupicked

Comments: if you have a cable modem, you need to look up CLONING your MAC Address to your computer and NOT the router. that could also be a problem.

Re: Can only access site from my network.

PostPosted: 09. April 2009 09:17
by anc96
I misunderstood what Wiedmann said, but now I understand. If I go to my external IP from my network, I get my router page, if I go to it from a different network, then I get my site. Thank you Wiedmann!

dravekx, please don't call me stupid.