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: 1439
Discussions: 200,931, Posts: 2,379,159, Members: 246,297
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,385
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,385
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,385
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? (2872)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Wireless Televisions. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Ideal cheap graph card for PC-Gaming? (16)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)


All times are GMT -4. The time now is 07:14 AM.
TechIMO Copyright 2009 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