Jump to content

Problem with internal network on web server


minckle
 Share

Recommended Posts

ok, I've got quite a complicated problem to explain but hopefully there'll be an easy solution.

I've a vista pc which Im setting up as a web server and email server. It connects to the internet via a netgear wireless point connecting to a bt voyager v220 adsl router.

Externally if i go to www.domainname.co.uk i get the live website being hosted by the vista pc (therefore I know the porting forwarding is working)

but when on the vista pc if i go to the same website i get the admin panel for the bt voyager router

Can anyone explain whats going on and how to fix it??

also, externally i can connect to the mail server using outlook, but internally i just get errors

Any help or advice wil be welcomed !!

Link to comment
Share on other sites

It sounds like your domain name resolves to the external IP address of your router.

Bring up a command prompt (I'm not sure of the steps to do that in Vista) and type ping www.domainname.co.uk, of course replacing domainname with your actual domain, then press enter. This will resolve the IP address that web site uses.

[edit]See if the address you get is the outside interface of your router.

The router may not know how to handle it when you try accessing your web page from the Vista machine itself. The web page probably resolves to the outside interface of your router, but the request for it originates from its inside interface.

A workaround would be to create a static Hosts entry for your web page on the Vista machine. I'm not sure where to find it in Vista, but the path to the file in Windows XP is: C:\WINDOWS\system32\drivers\etc

You would open the file in Notepad, and you'll see the following, or hopefully something similar for Vista:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

After the 127.0.0.1 line, put the following

192.168.1.50	 www.domainname.co.uk

Substituting 192.168.1.50 for the IP address on your Vista machine, and replacing domainname with the actual domain.

Be aware, if you're not using a static IP address on the Vista machine, it could change from time to time. Given your setup though, you're probably using a static.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy