rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: pacman2323 on December 29, 2006, 01:57:13 AM

Title: External IP Not Working
Post by: pacman2323 on December 29, 2006, 01:57:13 AM
I can't connect using the external IP address. Port 80 is forwarded and my Windows firewall is off. It still isn't working. Any suggestions?
Title: Re: External IP Not Working
Post by: maverick on December 29, 2006, 02:18:09 AM
If you are trying to test your HFS locally with your external IP, it won't work.  Use localhost or 127.0.0.1 instead.  Your external IP is the address you give out to your friends/public so they can connect to your HFS.
Title: Re: External IP Not Working
Post by: pacman2323 on December 29, 2006, 02:46:23 AM
Are you sure? I specifically remember it working in the past..

The self test fails too though, so obviously something isn't working.
Title: Re: External IP Not Working
Post by: Flynsarmy on December 29, 2006, 04:34:50 AM
You CAN use your external IP to access your HFS, although this appears to only work on some routers. I used to use
flynsarmy.homeftp.net to access my site, but now i just hit my routers admin panel instead. It's kind of weird, I hit
my routers admin panel, but everyone else gets my site.
Title: Re: External IP Not Working
Post by: rejetto on December 29, 2006, 11:29:23 AM
your router KNOWS what's your address, so it can behave differently for an internal user and an external user.
not so strange.
Title: Re: External IP Not Working
Post by: ledufe on December 29, 2006, 02:43:17 PM
so, why don“t you simply add your dns name to your host file?

it works here just fine

i got a no-ip redirect
inside my host file i added a line to it like this one bellow the localhost line:

Code: [Select]
127.0.0.1       localhost
127.0.0.1 ledufe.no-ip.info

and now, instead i use the http://localhost:port or http://192.168.1.2:port
i type http://ledufe.no-ip.info:port

by the way, this file has no extension, it is simply named hosts
and it normally is at this folder:

inside your windows directory (XP, 2000, 2003, vista, and NT)
\system32\drivers\etc\hosts
Title: Re: External IP Not Working
Post by: MarkV on December 30, 2006, 12:03:00 AM
Yep, I think I already mentioned the good ol' hosts trick in this forum a few times...
It works, but please remember to remove these lines whenever you move your computer out of the internal network.

Sometimes I forget it and wonder why I can't reach it from outside ;D


MarkV
Title: Re: External IP Not Working
Post by: 4wd on December 31, 2006, 01:59:39 AM
Another thing to consider is that some routers can automatically loopback the external IP internally.  Other routers by default don't, and require a setting/command.  (This only affects LAN traffic, not WAN.)

i.e. If it's enabled in the router then you can use the local, (192.168.0.x), IP or the external, (e.g. 203.234.567.89), IP - both will work.

e.g. My Zyxel doesn't by default, (a specific command is needed via telnet to loopback the external IP), so if I tried to access HFS on my computer by using the external IP it would fail.  After telling the Zyxel to loopback, it will work.

Perhaps you have the same problem.

Also, I have just spent an hour trying to access HFS via the external IP on my machine, (it worked using LAN IP and when firewall was exited), and found it wasn't the router or the software firewall, (Comodo), settings for HFS - it was the firewall settings for Firefox!
 
AARRGGHH!!  :-\
Title: Re: External IP Not Working
Post by: 4wd on December 31, 2006, 02:14:22 AM
You CAN use your external IP to access your HFS, although this appears to only work on some routers. I used to use
flynsarmy.homeftp.net to access my site, but now i just hit my routers admin panel instead. It's kind of weird, I hit
my routers admin panel, but everyone else gets my site.

It's probably because your router is basically a HTTP server for access to the Admin panel.  By default this is on port 80.

Also by default, routers are generally set up to permit access to the Admin panel from LAN only, this can usually be changed to permit access from LAN and/or WAN also.

If you tried to access HFS, (assuming it was set to the default port of 80 - which BTW, is the very first thing I change), using the external IP from your machine, you would most likely get your router Admin panel.  It happens to me.

If you set your router Admin to allow access from WAN, you'd find anyone who tried to access HFS would end up at your routers Admin panel instead.

As a matter of security, it's always a good idea to change your router's default Admin WWW port - mine's up in the 7000-9999 range - it means anyone with local access to the machine is unlikely to access it since they'd need to input http://192.168.0.x:yyyy instead of just http://192.168.0.x.

Cheers.