Solved

Cannot access sites running on localhost using IP Address

Posted on 2006-06-27
3
322 Views
Last Modified: 2010-03-17
Hello,

I have Tomcat running on my Mac which is used to serve the web pages. I can access the files (which are in folder myfiles) if I type in http://localhost/myfiles and the correct jsp files are shown to the user. The internal IP address of the mac is 10.10.10.4, which has been manually configured. When I type in 10.10.10.4/myfiles in the browser, I get a 404 not found page. However, the strange thing is, if I just type 10.10.10.4 in the browser, I get the Apache test page. I am not sure why I can access the test page but not the folder if I type the IP address. I would appreciate any help here.
0
Comment
Question by:pr12
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ParadiseITS earned 150 total points
ID: 16995829
Sounds like you have a permission problem on the Myfiles directory.  You will need to either enable a username/password login to the web-directory or open it to anonymous users through apache.  This is bypassed when accessing it as localhost because you, obviously, have access to it.
0
 

Author Comment

by:pr12
ID: 17004520
Thanks for your reply. How do I open the web-directory to anonymous users?
0
 

Author Comment

by:pr12
ID: 17047708
I have it working. Thanks for your help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now