LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   localhost not working (https://www.linuxquestions.org/questions/linux-networking-3/localhost-not-working-347114/)

ibrewale 07-26-2005 08:16 PM

localhost not working
 
I am running debian 3.1, with kernel 2.6.11. It is a hd install of knoppix 3.9

I have loaded gnump3d and am trying to view my music directory, which should be under http://localhost:8888

While trying to view, my browser never loads the page. There is no error message, it just sits there trying to load.

Same can be said for just http://localhost/ or telnet localhost, or telnet specifically 127.0.0.1 etc

I have checked my firewall settings, which is set up to allow http serving.

On a previous knoppix install, I did set up my own web server for ampache (another music server) succesfully.

Can someone give me some things to check?

Oh, I have restarted apachectl

Thanks

ibrewale

ibrewale 07-26-2005 08:24 PM

If this helps, I can ping my laptop on my network. I cannot ping my own machine though.

example
Code:

PING laptop1.gateway.2wire.net (172.16.1.33): 56 data bytes
64 bytes from 172.16.1.33: icmp_seq=0 ttl=128 time=5.3 ms
64 bytes from 172.16.1.33: icmp_seq=1 ttl=128 time=3.2 ms
64 bytes from 172.16.1.33: icmp_seq=2 ttl=128 time=2.2 ms
64 bytes from 172.16.1.33: icmp_seq=3 ttl=128 time=2.3 ms
64 bytes from 172.16.1.33: icmp_seq=4 ttl=128 time=2.3 ms
64 bytes from 172.16.1.33: icmp_seq=5 ttl=128 time=2.7 ms
64 bytes from 172.16.1.33: icmp_seq=6 ttl=128 time=2.9 ms


thanks

ibrewale

charon79m 07-26-2005 08:49 PM

Note that the port for this is 8888.

Standard web is on port 80. You will probably need to set your firewall to allow connections to port 8888.

You will only be able to telnet to localhost if your are running a telnet daemon, by default you are not. You will only be able to http://localhost if you are running some sort of webserver (apache) locally.

Try this:

netstat -a -n | grep 8888

See if you have some output like this:

tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN

If you do, your service is listening for a connection.

Hope this helps!

MrKnisely

ibrewale 07-26-2005 09:03 PM

I do have apache running locally.

Here is the output for netstat -a -n |grep 8888


Code:

netstat -a -n |grep 8888
tcp        0      1 172.16.1.34:2899        127.0.0.1:8888          SYN_SENT

I'm still searching.

Thanks

jerry

ibrewale 07-26-2005 09:32 PM

More information.

When I enter http//<my ip address>

It works, I pull up my default apache welcome page.

When I enter http://<my ip address:8888>

I get a connection refused message.

With that said, I added a line in my httpd.conf file to listen for port 8888
The initial configuration had just port 80, as expected.

I restarted apache, with no luck at http://<my ip address:8888>

My firewall has been set up to allow port 8888 access.

Any other things I should do?

Thanks

jerry

charon79m 07-27-2005 09:41 PM

Is it apache that needs to listen on port 8888?

I thought we were trying to get gnump3d to listen on that port.

You have to excuse my ignorance to gnump3d... I've not used it.

Mike


All times are GMT -5. The time now is 12:24 PM.