DUX COMPUTER DIGEST

 

Site Search

Site Info

Home » Forums » Forum Archives » Networking and Internet Sharing » Topic # 2060

localhost returns 404
Frinky Aug-06-02 11:41 AM
I haven't been able to access my site, http://frinky.ath.cx , from my computer which is part of a wireless network, despite the fact other people can. I can only access it from my internal IP. At first I thought the problem was with IIS, but I was wrong. I tried some 3rd party software such as Liteserve, and I tried installing Apache. None of this worked. I still can't access my site, or even localhost. I thought the problem was with my router, so I booted up in Linux. I could access localhost from Linux, so I know the problem isn't with my router. So what, then, is the problem?

1. RE: localhost returns 404
lbyard Aug-06-02 11:48 AM
In response to message 0
You are assuming that we know a lot more about your network than is written in your post. Larry

2. RE: localhost returns 404
lbyard Aug-06-02 12:00 PM
In response to message 0
http://24.147.223.236 works, right? Larry

3. RE: localhost returns 404
Frinky Aug-06-02 12:09 PM
In response to message 2
OK, here's some more information. I have two computers, one downstairs running XP home, and one upstairs running XP Pro. They are connected to a D-Link DI-713 wireless router. The downstairs computer is plugged in to the router, and the upstairs one is using a DWL-120 USB wireless adapter. By the way, the downstairs computer can access localhost. And no, http://24.147.223.236/ does not work; I get a "page cannot be displayed" error.

5. RE: localhost returns 404
lbyard Aug-06-02 12:27 PM
In response to message 3
Where is the server? I know what localhost means. What do you mean when you say the computer downstairs can access localhost? Larry

6. RE: localhost returns 404
Frinky Aug-06-02 12:45 PM
In response to message 5
I mean that I can get to http://localhost downstairs without getting a 404.

7. RE: localhost returns 404
DJ Net2Infinity Aug-06-02 05:47 PM
In response to message 6
Localhost as in 127.0.0.1?

8. RE: localhost returns 404
Frinky Aug-06-02 07:37 PM
In response to message 7
LAST EDITED ON Aug-06-02 AT 07:38 PM (EDT)
 
My mistake. I can NOT access 127.0.0.1 OR http://localhost from upstairs OR downstairs. I can, however, access my site that is running on the upstairs comp from downstairs, but not on the upstairs comp that is hosting my site (http://frinky.ath.cx). Oh, and if it makes a difference, I am using a static IP.

9. RE: localhost returns 404
DJ Net2Infinity Aug-06-02 09:32 PM
In response to message 8
Um try ... \\127.0.0.1 , as there is no http://localhost that I know of. Can you ping 127.0.0.1?

10. RE: localhost returns 404
Frinky Aug-06-02 09:44 PM
In response to message 9
Hey, I was trying http://127.0.0.1. but \\127.0.0.1 works fine! Ping attempts to 127.0.0.1 work, too.

11. RE: localhost returns 404
DJ Net2Infinity Aug-06-02 11:46 PM
In response to message 10
Well that is your localhost

12. RE: localhost returns 404
Frinky Aug-07-02 00:12 AM
In response to message 11
OK, well there's still the problem of me not being to access my site http://frinky.ath.cx and also not being able to access my external IP, 24.147.223.236.

14. RE: localhost returns 404
DJ Net2Infinity Aug-07-02 01:04 AM
In response to message 12
LAST EDITED ON Aug-07-02 AT 01:13 AM (EDT)
 
Hum ..... lemme think about that one

15. RE: localhost returns 404
lbyard Aug-07-02 11:05 AM
In response to message 12
Is that a separate IP assigned to the server or is it the one assigned to your router? I other words, in IIS what is the web server IP? Larry

16. RE: localhost returns 404
Frinky Aug-07-02 12:16 PM
In response to message 15
In IIS, the site is assigned to my internal IP, 192.168.0.135. My external IP is registered with http://ath.cx . I was told that this is the right way to do it, but just to see what would happen I tried assigning IIS to my external IP, and then tried registering my internal IP with ath.cx. Nothing worked.

17. RE: localhost returns 404
lbyard Aug-07-02 12:34 PM
In response to message 16
So, why aren't you using http://192.168.0.135 to connect to the web server from the computers on the same local network with it? If you want to browse to the domain name, set-up host tables. For Windows NT, 2000, XP look at c:\winnt\system32\drivers\etc\hosts with a text editor. Itís in c:\windows on win 9x computers. See hosts.sam (sam = sample file). You may have configure TCP/IP to use them. The same table should be on all computers. The same hosts will work on all versions of Windows. For those who have a domain controller (win NT, 2K Server) you may also need to setup LMHOSTS, which goes in the same directory. See lmhosts.sam. It can be real fussy to set-up as the white space (spaces) is critical. There is a knowledgebase article on how to do it. Larry

18. RE: localhost returns 404
Frinky Aug-07-02 01:30 PM
In response to message 17
LAST EDITED ON Aug-07-02 AT 01:32 PM (EDT)
 
I don't use 192.168.1.135 from the other computers because http://frinky.ath.cx works fine. As for using it up here, to be able to set up some things like UBB I need to be able to browse http://frinky.ath.cx. As for setting up the hosts, that sounds hard... why wasn't it already set up here like it was on all the other computers? When I had a site running on a downstairs computer, I could access http://frinky.ath.cx perfectly fine. Maybe I should copy hosts and lmhosts from my downstairs XP Home computer and use them on this one?

19. RE: localhost returns 404
lbyard Aug-07-02 01:38 PM
In response to message 18
It seems rather inefficient and slower to me to go out to the Internet to access a host on the same LAN. When I had a bunch of webs on my LAN, I accessed them directly. Host tables are easy. They are simply a list of names with ip addresses.

name1 192.168.0.1
name2 192.168.0.2

Or, maybe the IPs come first. Itís been a while since I set one up. Larry


20. RE: localhost returns 404
Frinky Aug-07-02 08:17 PM
In response to message 19
Well, the problem is that it isn't working. As a default in my hosts file, I noticed, 127.0.0.1 is set as "localhost", yet typing localhost in the URL bar does nothing. Also, lots of variations of ad.doubleclick.net are also set to 127.0.0.1, as are many other URLs that look like ads, i.e., sponser 2002, valueclick and so on.

21. RE: localhost returns 404
lbyard Aug-08-02 00:42 AM
In response to message 20
Why should it? Your web server is not assigned 127.0.0.1. That lookup table isnít just for browsers and web servers. Other things besides web servers can have a domain/IP. I do not know where doubleclick came from. The only entry in a freshly installed Win 2K is the local host entry. Try adding:

frinky.ath.cx 192.168.0.135

Larry


22. RE: localhost returns 404
Frinky Aug-08-02 00:59 AM
In response to message 21
Yay, it works! Thank you! Out of curiosity, though, how come I can't access my external IP from the host computer?

23. RE: localhost returns 404
lbyard Aug-08-02 01:18 AM
In response to message 22
Do you have two Internet IPs, or would your situation be the same as calling yourself on the phone? Larry

24. RE: localhost returns 404
Frinky Aug-08-02 12:08 PM
In response to message 23
I have two IPs as in one IP that is my internal cable router IP, and one that is my public external IP.

25. RE: localhost returns 404
lbyard Aug-08-02 03:27 PM
In response to message 24
I am afraind that I do not understand. As I recall, the IP's I saw in your post for your computurs and web server were local IP's starting with 192... Larry

26. RE: localhost returns 404
Frinky Aug-08-02 09:24 PM
In response to message 25
The ones starting with 192 are my internal ips. Noone outside of the home network can access them. 24.147.223.236 is my external IP which is registered with dyndns. Anyone can access my site with this IP, except me for some reason.

27. RE: localhost returns 404
lbyard Aug-09-02 00:18 AM
In response to message 26
Then you have one Internet IP (call it external) for everything and the NAT in the router is translating packets and sending them to the appropriate local (private) IPs. To the world/Internet your PCs and web server have one IP, not two, right? Larry

28. RE: localhost returns 404
Frinky Aug-09-02 12:58 PM
In response to message 27
Correct.

| Home | Guides | How to | Reviews | Online Store | FAQ | Forums | Forum Archives |
| Links | News | Newsletter | About Dux | Advertising | Contact Info | Privacy |