Accessing site locally.  | |
March 18th, 2003, 02:17 AM
|
#1 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
| Accessing site locally.
I have NAT setup on my network and a webserver with port forwarding setup. I can access it localy fine with 192.168.1.200. But if i try to use my public ip from inside my network i get a connection refused.
I've tried useing an outside proxy but it doesnt handle cookies very well so when i login i dont stay logged in.
The reason i'm need this is because i'm setting up ubbthreads and it asks you the site, and it makes url's with that ip or domain. So it ends up that ether i can use the site and no one else can, or everyone else can but me.
Any insite?
-Eric |
| |
March 18th, 2003, 06:48 AM
|
#2 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
| Re: Accessing site locally. Quote: Originally posted by bfcx I have NAT setup on my network and a webserver with port forwarding setup. I can access it localy fine with 192.168.1.200. But if i try to use my public ip from inside my network i get a connection refused.
I've tried useing an outside proxy but it doesnt handle cookies very well so when i login i dont stay logged in.
The reason i'm need this is because i'm setting up ubbthreads and it asks you the site, and it makes url's with that ip or domain. So it ends up that ether i can use the site and no one else can, or everyone else can but me.
Any insite?
-Eric | yep i think that's normal when i tried that with a intern linux server and i tried to log with the extern IP i get a firewall message! but the others saw my website!
Creatures
__________________ Canon EOS 450D | Canon EF-S 18-55mm 1:3.5-5.6 IS | Canon EF-S 55-250mm 1:4-5.6 IS | Canon Speedlite 430EX II |
| |
March 18th, 2003, 03:00 PM
|
#3 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
|
well thats no fun, you'd think it would be easyer to administer a site thats inside your network hehe. |
| |
March 20th, 2003, 03:51 AM
|
#4 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
|
did some searching and found this witch explains why this happens perty well. http://www.geocrawler.com/archives/3...1/2/0/5249124/
the solution is to put a NAT rule in (witch my basic router doesnt support) or edit the host file on my computer to have the external ip address reslove to the internal address. Now, i just have to figure out how to edit the hosts files on my MacOSX and XP machines.
-Eric |
| |
March 20th, 2003, 04:34 AM
|
#5 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
|
assuming your comfortable with vi:
OSX 10.2
open terminal.app
sudo vi /etc/hosts
put something like:
192.168.1.200 yourdomain.com
I couldnt make it work with IP's, probably because they dont need to resolve hehe.
But this lets me access mydomain.com from inside my NAT network. |
| |
March 20th, 2003, 06:52 AM
|
#6 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
is it so important for you? you can access it with entering your IP?
Creatures |
| |
March 20th, 2003, 03:16 PM
|
#7 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
|
yes, because if i enter the local IP it works to get to the site, but ubbthreads changes all the url's to whatever ip or domain i have to specify, and if i specify the interal external people cant use the site, and if i specify external i can access the site. But now all can access the site  |
| |
March 20th, 2003, 05:46 PM
|
#8 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
so the problem is solved now?
Creatures |
| |
March 20th, 2003, 08:11 PM
|
#9 (permalink)
| | Senior Member
Join Date: Oct 2002
Posts: 557
|
yep, just telling the hosts file to resolve the host name to the interal one instead of the external one fixed the problem right away, thanx.
-Eric |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |