Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Networking Forum > Protocols and Routing
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Protocols and Routing IP, IPX and other protocol support

Reply
 
Thread Tools
Old 06-14-2008, 06:19 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 5
OS: Windows Vista SP1


Razz Can't connect to website using external IP

Hi there,
I'm trying to connect to a website hosted from my home computer using wampserver, however I can only access it either by typing 'localhost' or '192.168.2.2' in my browser. If I go to my external ip, 81.96.32.204, it takes me to the Belkin router setup page. Here's the weird thing, if I type my external IP into a proxy then the website I wanted to see appears, does anybody know why this is, or how I can fix it?
I'm on Windows XP SP3 with a Belkin F5D7231-4, version 1103UK Wireless G Router, and have port 80 forwarded on my router virtual servers list.
Thank you in advance for your help.
Bri.
Spotsilver is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-14-2008, 01:56 PM   #2 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 4
OS: FC7


Re: Can't connect to website using external IP

If your server is behind a router, then most likely you are not visible to the outside world.
If you want, I can suggest trying an openvpn account from your machine, where you would get the public ip on the machine itself, and no longer need the router public ip. Check http://publicip.info
steelmans1980 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-14-2008, 02:09 PM   #3 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 5
OS: Windows Vista SP1


Re: Can't connect to website using external IP

Thanks for the reply, the problem lies more with me not being visible to myself. Everybody else can view my website from my external IP but me, I have to use the internal IP to view it.
Spotsilver is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-14-2008, 02:55 PM   #4 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 4
OS: FC7


Re: Can't connect to website using external IP

I believe that would happen if your traffic is Natted outside through the router, and the router is natting inside the web server port.
What happens in this scenario is the following:
1- you request opening a webpage (your site in this case).
2- Router receives your request on the Natted interface, and will nat it outside, by changing the source IP to its IP , then sending the request out through the public interface.
3- Router here would not parse the 'nat inside' rule, as it's trying to 'nat outside' the packet, and would then not be able to process your request
4- Your browser ends up not receiving any response.

This scenario is typical for a cisco 2811 router. I'm not sure what you are using, but for instance an ISA firewall does not have this issue.

The solution I can think of is updating your LMHOSTS file to resolve the website name to your local ip before trying to go to your router
steelmans1980 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-14-2008, 06:09 PM   #5 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 5
OS: Windows Vista SP1


Re: Can't connect to website using external IP

Quote:
Originally Posted by steelmans1980 View Post
I believe that would happen if your traffic is Natted outside through the router, and the router is natting inside the web server port.
What happens in this scenario is the following:
1- you request opening a webpage (your site in this case).
2- Router receives your request on the Natted interface, and will nat it outside, by changing the source IP to its IP , then sending the request out through the public interface.
3- Router here would not parse the 'nat inside' rule, as it's trying to 'nat outside' the packet, and would then not be able to process your request
4- Your browser ends up not receiving any response.

This scenario is typical for a cisco 2811 router. I'm not sure what you are using, but for instance an ISA firewall does not have this issue.

The solution I can think of is updating your LMHOSTS file to resolve the website name to your local ip before trying to go to your router
Thanks for the response. How would I go about updating my LMHOSTS file to do that?
Spotsilver is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-15-2008, 01:31 AM   #6 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 4
OS: FC7


Re: Can't connect to website using external IP

actually, Hosts file can do it, 'cause LMHosts is for netbios, while hosts is for TLDs
The file is located here: C:\windows\system32\drivers\etc\hosts
if it doesn't exist create it

a simple example:
192.168.0.1 google.com

This feature has priority over DNS, so your OS will look there first, if it's found, it won't go to DNS.

for more info on LMHosts:
http://en.wikipedia.org/wiki/HOSTS_file

steelmans1980 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-15-2008, 04:01 AM   #7 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 5
OS: Windows Vista SP1


Re: Can't connect to website using external IP

I added these two lines to my host file, saved and rebooted and the two links still show the router setup page, are they correct?

192.168.2.3 orals.ath.cx
192.168.2.3 81.96.32.204
Spotsilver is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-15-2008, 03:33 PM   #8 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 4
OS: FC7


Re: Can't connect to website using external IP

yes, the 1st one is correct. The 2nd one will not work, because it's an IP address, that doesn't invoke name resolving services.

If you ping orals.ath.cx now, does it show IP and reply from 192.168.2.3?
steelmans1980 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 03:01 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81