home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Accessing site locally.

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1775
Discussions: 200,510, Posts: 2,374,413, Members: 245,833
Old March 18th, 2003, 02:17 AM   Digg it!   #1 (permalink)
Senior Member
 
bfcx's Avatar
 
Join Date: Oct 2002
Posts: 557
Question
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
bfcx is offline   Reply With Quote
Old March 18th, 2003, 06:48 AM     #2 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,360
Send a message via ICQ to Creatures
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
Creatures is offline   Reply With Quote
Old March 18th, 2003, 03:00 PM     #3 (permalink)
Senior Member
 
bfcx's Avatar
 
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.
bfcx is offline   Reply With Quote
Old March 20th, 2003, 03:51 AM     #4 (permalink)
Senior Member
 
bfcx's Avatar
 
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
bfcx is offline   Reply With Quote
Old March 20th, 2003, 04:34 AM     #5 (permalink)
Senior Member
 
bfcx's Avatar
 
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.
bfcx is offline   Reply With Quote
Old March 20th, 2003, 06:52 AM     #6 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,360
Send a message via ICQ to Creatures
is it so important for you? you can access it with entering your IP?

Creatures
Creatures is offline   Reply With Quote
Old March 20th, 2003, 03:16 PM     #7 (permalink)
Senior Member
 
bfcx's Avatar
 
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
bfcx is offline   Reply With Quote
Old March 20th, 2003, 05:46 PM     #8 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,360
Send a message via ICQ to Creatures
so the problem is solved now?

Creatures
Creatures is offline   Reply With Quote
Old March 20th, 2003, 08:11 PM     #9 (permalink)
Senior Member
 
bfcx's Avatar
 
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
bfcx is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1635)
FT HOOD attack: 7 killed 12 injured (67)
Review My Build (6)
HELP!!! What do you think of this s.. (16)
Looking for a graphic card that wil.. (30)
Assosiations (21496)
My 1st pc build (40)
PC Modern Warfare 2: it's much wors.. (12)
Aero in Vista (7)
core i7 extreme 975, nvidia 9400gt (9)
How to Ship a PC (16)
Building my first computer (13)
[F@H SPAM 11/1/09]New month . . . n.. (33)
slaving laptop drive (7)
Recent Discussions
boot from CD-ROM in chipset via P4M80.. (2)
Powe Director v8 (0)
windows 7 retail and rtm (3)
Windows Experience Index is screwed u.. (3)
Review My Build (6)
FAT32 to NTFS file system in Win2kpro (4)
Internet very slow since updating AVG.. (8)
Motherboards and my curse... (25)
HELP!!! What do you think of this sys.. (16)
New Processor, Monitor will not turn .. (2)
2009 Build (4)
My 1st pc build (40)
Freezing During Music/Movies (1)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
Help and Support disappeared from my .. (0)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
New build 10 second reboot cycle! Won.. (3)


All times are GMT -4. The time now is 08:38 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28