Home network and web server

G

Guest

I have two XP Pro machines (machine1 and machine2) connected to each other.
Both of them share an internet connection. One of them (machine1) has a web
server installed. How can I access this web server from the other machine
(machine2) ? When I enter http://machine1 from machine1 I get the local web
server. When I tried http://machine1 from machine2 the request gets routed
to the internet and opens www.machine1.com . I tried it with the IP address
of machine1 it still does not work.
 
C

Chris Priede

Turbo said:
How can I access this web server from the
other machine (machine2) ? When I enter
http://machine1 from machine1 I get the local
web server. When I tried http://machine1 from
machine2 the request gets routed to the
internet and opens www.machine1.com

On machine2, add an entry for machine1 to your hosts file
(C:\Windows\System32\Drivers\etc\Hosts, assuming your Windows directory is
on drive C:). This is a text file you can edit with Notepad. It should
already be there and should contain some comments explaining the format.
I tried it with the IP address
of machine1 it still does not work.

That probably should have worked, so there may be something more going. If
you continue to have problems after setting up the hosts file, describe
exactly what you get.
 
G

Guest

Chris Priede said:
On machine2, add an entry for machine1 to your hosts file
(C:\Windows\System32\Drivers\etc\Hosts,

Thanks for replying. I am not sure if I am using the right IP address.
When I ru0n ipconfig/all in machine1 I get the following IP address

Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 124.1.0.47 (that's an imaginary IP
address)

When I tried http://124.1.0.47 from machine2, the request goes to our local
ISP and I get a web page from their proxy server saying this ip address is
blocked to prevent netwoek overload or some such thing.

I am not sure if editing the hosts file will solve the problem, beause if i
enter
124.1.0.47 machine1
in the file. It only resolves http://machine1 to http://124.1.0.47 , but I
already tried
http://124.1.0.47 without any success. I wonder if this can be solved by
changing some firewall setting.

Regards

S
 
B

bumtracks

How are you sharing the internet connection, through a LAN router ?
Imaginary IP numbers only work in the virtualHosts file.
 
G

Guest

bumtracks said:
How are you sharing the internet connection, through a LAN router ?
No LAN router, just a cable from network card to network card.
Imaginary IP numbers only work in the virtualHosts file.
I meant the IP address I posted here was imaginary. That's because I
coudn't remember the exact IP address so I used some random numbers that came
into my head.
 
H

Hans-Georg Michna

Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 124.1.0.47 (that's an imaginary IP
address)

When I tried http://124.1.0.47 from machine2, the request goes to our local
ISP and I get a web page

So what's the real IP address? That one is in Australia. Are you
in Australia?

I append some whois information below.

It may make a difference whether you use correct IP addresses or
whether you duplicate ones owned by others. Please read
http://winhlp.com/IpAddressesPrivate.htm for more information.

One of your immediate problems may be your browser, which
auto-completes machine1 to www.machine1.com , but the reason may
well be the use of a publicly known IP address.

Normally the things you tried should work. Can you ping machine1
from machine2? An entry in the hosts file is not needed within a
subnet. The advice given to that end is wrong.

Hans-Georg
 
C

Chris Priede

Hi,

Turbo said:
When I tried http://124.1.0.47 from machine2, the request
goes to our local ISP and I get a web page from their proxy
server saying this ip address is blocked to prevent netwoek
overload or some such thing.

If your Internet Explorer has a proxy set, then it is probably IE causing
that. To fix, go to your Internet Properties, Connections tab. Click the
LAN Settings button (or select your connection from the list if applicable,
then click Settings). If there is a proxy server set, click the
"Advanced..." button next to that. Add your other machine's address and
name to Exceptions.
I wonder if this can be solved by changing some firewall setting.

If it's not a proxy server setting issue (above), then it has to do with
routing. In typical setups, packets destined to another local computer
should never go out over the ISP connection -- if this is happening, then
you probably have a setup with each computer having its own public IP
address, or something similar.

A lot more detail will be needed to offer you any useful advice about that,
so let's just look at the proxy settings first.
 
P

peder.s

Turbo Turtle said:
I have two XP Pro machines (machine1 and machine2) connected to each
other.
Both of them share an internet connection. One of them (machine1) has a
web
server installed. How can I access this web server from the other machine
(machine2) ? When I enter http://machine1 from machine1 I get the local
web
server. When I tried http://machine1 from machine2 the request gets
routed
to the internet and opens www.machine1.com . I tried it with the IP
address
of machine1 it still does not work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top