Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot access sites running on localhost using IP Address

Posted on 2006-06-27
3
Medium Priority
?
330 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 300 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

877 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