• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache not working when accessed with IP address

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have installed apache on windows xp service pack 2. Whenever I am connected to LAN, my D-link router assigns a static ip address '192.168.0.149' to my computer.

I have changed the listen directive in httpd.conf to 'Listen 192.168.0.149:8100'.

I am able to view the default page from the browser if I give 'http://localhost:8100'.

But If I give 'http://192.168.0.149:8100' it is showing the message 'The page cannot be displayed.

Is it a problem with apache ? or router or there are any other settings to be made ?

It would be great if anyone can suggest a solution to this problem..
Thanks in advance,
-Prasad
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try updating your host entry in hosts file. I am currently on linux. So, cannot paste the exact path of the file. But, you can look into WINDOWNT/system32/drivers/etc. Please note that this path may be different also.

Add the following entry in this file
192.168.0.149 localhost

Restart apache server.

You should be able to get the page now.

Thanks,
Kalpesh
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Prasad", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Be aware that accounts with invalid display names are removed.

bear
JavaRanch Sheriff
[ April 10, 2006: Message edited by: Bear Bibeault ]
 
Prasad Darsi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I changed the entry in "hosts" file as specified.. but it is still giving the same problem.

It worked 10 days back but suddenly it stopped working..

Any settings to be made in router ?
 
Prasad Darsi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think there is problem with Windows xp service pack 2 (SP2).

Because I have installed apache with default configuration on Windows xp professional without SP2 and it is working without any problem. That system is also in the same network and I can access the default page of Apache by using the IP address of the machine..

I also installed Apache with default configuration on another Computer with Windows XP SP2 and it is giving the same problem.

Do I have to uninstall the SP2 from Add/remove programs to solve this problem ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic