![]() |
|
#1
|
|||
|
|||
Only LocalHost And 127.0.0.1 Works----HelpHi. I installed Apache (version 2.0.54) I setup the file httpd in the conf folder, and set the root directory to a folder on my desktop. Now, when I type in local host or 127.0.0.1, I see it fine. But when I type in the ip adress or the domain name i foarded it to, it doesnt work. When I type in the ip adress it just sais loading and after a while it said "The Operation Timed Out." Then I told my friend to try it. When he did he just got a blank page. Now....just to mention, it was working fine yesterday, but now its not. Heres some information. When I type in ipconfig in the cmd, i get 192.168.1.101. And when do one of those "whats my ip adress" in google and click one of those sites I get 69.86.5.222. And I get that same address for every computer thats connected to my router. Is there somthing I can do on my computer that will make the server work again, that will show the site when I type in 69.86.5.222? Or should I do somthing about that ip adress. And i fowarded port 80 to 192.168.1.101 on my router.(i can only foward it to 192.168.1.somthing...i can change the 192.168.1)
Heres a whole bunch of information again so you dont have to look back at all this. Information Operating System:Windows XP home edition--Service Pack 2 Browser Running: Firefox 1.0.7 (but i tested it on Internet Explorer and Opera and i got the same results) Ip adress from ipconfig: 192.168.1.101 Ip adress from WhatsMyIP.org: 69.86.5.222 (the one that it worked on yesterday) Apache Version: 2.0.54 If you need more information to help me, please ask. Thanks |
|
#2
|
|||
|
|||
Re: Only LocalHost And 127.0.0.1 Works----HelpI cant edit so im posting this......
UPDATE Whenever i change Listen 80 to Listen *some other port* then local host doesnt even work. It did work before though. I used port 90, and then the ip adress worked, but i changed it to another directory and now it doesnt work again. Ive been playing around with different ports but only 80 lets localhost work. And if localhost doesnt work, i dont see how the ip adress is going to work publicly. And as you can tell..i dont have a public ip adress. my isp wont let it. Do you think that might be the problem? If so, is there anything els i can do other then getting webspace from another website. Thanks -Scott |
|
#3
|
|||
|
|||
Re: Only LocalHost And 127.0.0.1 Works----HelpHello!
I have same problems and I am despered! Please, help me! Here is the thing: I have 2 computers at home connected to a router. I installed Apache 2.0.x on both of them. The Apache installed on my desktop computer works fine: it works if I try to open localhost, 127.0.0.1 and 192.168.1.100 (computer IP). BUT, I am having real problems with the Apache on my notebook: I can open localhost and 127.0.0.1, BUT can not open 192.168.1.101 - my notebook IP. I have Windows firewall and Norton antivirus - but I have exact same settings on both of my computers and one works and the other doesn't. I have tried to switch off both of them, but it still doesn't work. I've also tried to look around with the use of Windows program netstat and in the line, which show activity by Apache is written SYS_SENT, but on my desktop (where everything is working fine) it says ESTABLISHED. IMO everything is fine with my Apache (I didn't change any setting on either computer), so it must be something else?? But ... w-h-a-t? Please, help! |
|
#4
|
||||
|
||||
Re: Only LocalHost And 127.0.0.1 Works----HelpThe 192... IP address is the local IP for your LAN; it's not the same as the one you would try to connect via the Internet. So if you're trying to connect to your system via the LAN, you need to make sure your router isn't blocking internal requests. It's also why you're getting different IP numbers between ipconfig and google.
Port 80 is the default port for HTTP requests; unless you setup Apache to listen to a different port, it should be looking for traffic on port 80 (HTTPS is different, like port 215 or something way different from 80). Beyond that, it's been quite a while since I messed w/ Apache but you will want to double-check the config files and make sure the IP address associated w/ Apache is the Internet one, not your LAN one. You might also need to see if a VLAN is enabled that could be messing w/ the connection. IIRC, Apache defaults to looking for web files (of whatever type) in the httpd folder; however it may be located somewhere wierd like "/localhost/httpd" or "web/httpd" or a similar combination. Just make sure the files are in the same place Apache is looking for them. If your Apache server is setup correctly, it will give you a "Welcome to Apache" screen. Don't worry about putting up a web site until you can get the welcome screen consistently. BTW, are these base Apache installs or are they part of a package (usually includes Apache, PHP, and MySQL)? __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#5
|
|||
|
|||
Re: Only LocalHost And 127.0.0.1 Works----HelpHello and thanks for your reply!
But, I already know everything you wrote and I don't know if you read my post well enough ... I have same configuration files on both of my computer, and on one it works, and on other, it doesn't. I don't belive there is something wrong with the router, as I've double-checked every setting - and they are all same for both computer IPs. The connection is working properly also. There must be something on my notebook, but ... I can't figure it out. |
|
#6
|
||||
|
||||
Re: Only LocalHost And 127.0.0.1 Works----HelpSorry, didn't know what your knowledge level is. I assume you've verified your ports are open on the laptop, so my next question is what type of network connection is your laptop using? I don't know for certain but I'd imagine a wireless connection could possibly cause some problems, e.g. the wireless router is configured correctly for the wired Ethernet ports but not for wireless for security reasons.
I guess something to try (if you haven't already) is to test both wired and wireless connections and see what happens. I don't have a lot of experience w/ this so I don't know how much more help I can offer you; most of my knowledge came from setting up Apache on my Gentoo Linux box, and that was last year. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#7
|
|||
|
|||
Re: Only LocalHost And 127.0.0.1 Works----HelpOh, man! That is a good idea! I'll try it, ofcourse! Thanks. I'll write about it later ...
|
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL - just how does it works?!?! | Kilgayne | MySQL / PHP Forum | 6 | 23-Apr-2005 00:07 |
| Apache only works on localhost | JujikaSoft | Apache Web Server Forum | 5 | 19-Apr-2005 19:53 |
| Works fine on laptop, wont work fine on desktop! | jnorris | Apache Web Server Forum | 2 | 23-Feb-2005 06:23 |
| Simple file lock works on unices, not on Windows | QED | C++ Forum | 1 | 03-Feb-2005 07:25 |
| Only some PHP works on Apache | dexter | Apache Web Server Forum | 1 | 27-Oct-2004 05:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The