Re: Two local IP addresses, cannot see my own webserver!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Hucker (hucker_at_clara.co.uk)
Date: 09/05/04


Date: Sun, 05 Sep 2004 18:02:49 +0100

On Sun, 5 Sep 2004 12:00:34 -0400, Lanwench [MVP - Exchange] <lanwench@heybuddy.donotsendme.unsolicitedmail.atyahoo.com> wrote:

> Peter Hucker wrote:
>> On Sun, 5 Sep 2004 16:17:58 +0100, Ron Lowe
>> <ron-msng@{d.e.l.e.t.e.}lowe-family.me.uk> wrote:
>>
>>> I think this may ba a manifestation of a common issue.
>>>
>>> You may not be able to refer to another machine on your LAN using
>>> it's public IP address because the NAT doesn't do loopback.
>>>
>>> IOW, from within your LAN, the NAT ( sharing ) machine will only be
>>> contactable on the Internal IP ( 192.168.0.2 ) but not on it's
>>> external IP address.
>>>
>>> Normally, you need to use the hosts file internally to point to your
>>> external domain name to the internal IP address.
>>> Leave external DNS for your domain pointing at the external address.
>>>
>>> But then you won't be able to hit the home page at your ISP.
>>>
>>> How would I do it?
>>> Something like this:
>>>
>>> External DNS:
>>> www.yourdomain.com -> IP address of ISP's hosted page.
>>> www1.yourdomain.com -> External IP address of your server.
>>>
>>> In the home page, don't refer to the IP address of the home-hosted
>>> page, but refer to www1.yourdomain.com.
>>>
>>> Internally:
>>> Add this to your hosts file:
>>>
>>> 192.168.0.2 www1.yourdomain.com
>>>
>>> Now, name resolution for the www1 machine should resolve to the
>>> external IP address for everyone on the outside, but to 192.168.0.2
>>> for you on the inside.
>>>
>>> You still get the external IP address for the ISP-hosted page,
>>> becuase we didn't over-ride DNS with hosts for the www. homepage.
>>
>> But there is no domain for my external IP. Why can't I put:
>>
>> 127.0.0.1 80.229.155.158
>>
>> in the hosts file?
>
> Because that isn't what hosts does. It maps hostnames to IPs, doesn't
> redirect one IP address to another.
>
> I strongly suggest you buy a little gateway/router/firewall appliance, put
> it between your DSL modem and your network, and disable ICS. It works a lot
> better in general. Keep everyone on the same local (private) IP subnet. Use
> a static IP for your server, and DHCP if you like for your workstations.
>
> Windows makes a lousy router, if you ask me -and ICS is dreadful stuff.

It is sharing just fine. And I have an awful phone line - it's very difficult to get an ADSL modem/router to work on it - the one that works happenes to be USB.

Anyway even if I used a router (which I used to), I still have the same problem with a different IP being used for my server from here, than from externally.

-- 
*****TWO BABY CONURES***** 16 parrots and increasing  http://www.petersparrots.com
93 silly video clips   http://www.insanevideoclips.com
1259 digital photos    http://www.petersphotos.com
Served from a pentawatercooled dual silent Athlon 2.8 with terabyte raid
Lysdexia: a peech imspediment we live to learn with...


Relevant Pages

  • Re: Two local IP addresses, cannot see my own webserver!
    ... >> in the hosts file? ... > it between your DSL modem and your network, and disable ICS. ... > Windows makes a lousy router, if you ask me -and ICS is dreadful stuff. ... Anyway even if I used a router, I still have the same problem with a different IP being used for my server from here, than from externally. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Two local IP addresses, cannot see my own webserver!
    ... >> in the hosts file? ... > it between your DSL modem and your network, and disable ICS. ... > Windows makes a lousy router, if you ask me -and ICS is dreadful stuff. ... Anyway even if I used a router, I still have the same problem with a different IP being used for my server from here, than from externally. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Hosts file ignored
    ... > any of the entries I have made to the server's hosts file. ... > Successfully flushed the DNS Resolver Cache. ... > I am not running a DNS server on my system. ... > I can ping IP addresses without any problem, both on the LAN and on ...
    (microsoft.public.windows.server.general)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Ping cp.xxx.co.uk, same question. ... I found out the ip of my .co.uk so I put this into the hosts file of the ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)
  • Re: vpn connection to exchange server
    ... I've tried your suggestions and I still cannot connect to my exchange server ... To add entry in the HOSTS file, ... I noticed you couldn't ping the SBS server in the main office, ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)