Forum Moderators: phranque
In the 'hosts' file (C:\Windows\System32\DRIVERS\etc\) on the XP computer, I have the following line inserted:
192.168.0.1myservername
In my 'httpd.conf' file (C:\Program Files\Apache Group\Apache2\conf\), I have the following inserted:
Listen 192.168.0.1:80
and, further down:
ServerName 192.168.0.1:80
I have kept htdocs as the root directory, and put my web files in there.
Now, here's the problem.
I can access the server on Mozilla, Netscape and Opera (using [192.168.0.1,...] [myservername...] or [computername)...] but not on IE (using [anything)....] It's the same on both the client and server; it works on the other browsers, but not IE.
Can anyone tell me what the cause of this problem might be? I could just use the other browsers, but IE is my usual browser. Plus, I'm about to install MySQL, and want to be sure this isn't symptomatic of a serious problem before I do so.
P.S. Please reply in simple terms. I'm completely new to Apache, and networking.
TCP [i]your_ip[/i]:[i]any_port[/i] [i]ip_of_your_apache[/i]:80 [i]state[/i]
Good luck
When I try to access the server in Internet Explorer, I get the usual 'This page cannot be displayed...etc.' message. This happens even with 'Show friendly HTTP error messages' disabled in Internet Options -> Advanced. At other times however, the browser just hangs - timer attached to the mouse cursor etc.
Immediately after trying to access the server in Internet Explorer, I get the following when I run netstat:
ProtoLocal AddressForeign AddressState
TCPcomputername:httpservername:4542TIME_WAIT
TCPcomputername:httpservername:4543TIME_WAIT
TCPcomputername:4554192.168.0.2:netbios-ssnTIME_WAIT
After accessing the server with the other browsers, it usually reads 'ESTABLISHED' in the 'State' column.
Also, I've checked the access logs. No entries are registered when I try to access the server on IE, while they are registered when I access the server on other browsers. Accessing the server on IE doesn't seem to affect the error log either.
I haven't changed any of the Internet settings - e.g. LAN/proxy settings - because I don't understand them to be honest.
P.S. UseCanonicalName was 'off'. When you mentioned it, I tried switching it to 'on', but it made no difference.
Thanks again
YOu might want to check the connection settings on internet explorer. Tools->Internet Options->Connections->LAN Settings. See if a use a proxy is checked. If so, uncheck it.
I did this richlowe, and it worked - nice one! Thanks very much.
gergoe, the output of the netstat command I quoted above was actually from the server machine - I forgot to mention that. I had included the "http://" prefix alright. Anyway, the problem is solved now, thanks to richlowe, and to yourself for helping me to zone in on the problem. Cheers!