Solved

Cannot access sites running on localhost using IP Address

Posted on 2006-06-27
3
325 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Worried about if Apple can protect your documents, photos, and everything else that gets stored in iCloud? Read on to find out what Apple really uses to make things secure.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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