localhost works, static ip address does not!

localhost works, static ip address does not!

by Grant Christie -
Number of replies: 3

I have just installed easyphp (1.7) and then moodle. All has gone well except for this.

My static ip addres is 192.168.0.111 - a local LAN. In the browser I can type http://localhost/etc. and everything works fine. When I try typing  http://192.168.0.111/etc it does not. 

So Moodle works on my school's intranet I need to configure some file or files to allow access via the network on this machines ip address..

I would appreciate any help and  apologise for my newbie question.

Average of ratings: -
In reply to Grant Christie

Re: localhost works, static ip address does not!

by Lars Jensen -
If using apache, you need to configure the "ServerName" in httpd.conf configuration file.

Lars.
In reply to Lars Jensen

Re: localhost works, static ip address does not!

by Grant Christie -

Thanks Lars

I forgot to mention I was using windows XP Pro. I have tried configuringing Server Name (eg Servername 192.168.0.111) in the Appache httpd file but with know luck. I would have thought it would work but no. Maybe with PHPEASY 1.7 installations there is something else to change. smile

In reply to Grant Christie

Re: localhost works, static ip address does not!

by Grant Christie -

I discovered where I went wrong. I assumed my hardware was working. It had been. Something I should have tried first was ping the address I was setting. I did and discovered the problem. Lars was right and the ServerName needs to set. Thanks Lars.

Grant