PDA

View Full Version : localhost works but not IP



daniel
2006-01-19, 12:18
I just installed SlimServer and the songs play fine when I connect via http://localhost:9000/stream.mp3 however when I try using my ip address in place of localhost it doesn't work.

I tried turning my firewall off and all of that but still no change. I just don't understand why using localhost would work but using my IP instead of localhost on the same computer doesn't work.

Any suggestions?

Thanks a lot,
--Daniel

JJZolx
2006-01-19, 12:30
I just installed SlimServer and the songs play fine when I connect via http://localhost:9000/stream.mp3 however when I try using my ip address in place of localhost it doesn't work.

I tried turning my firewall off and all of that but still no change. I just don't understand why using localhost would work but using my IP instead of localhost on the same computer doesn't work.

Any suggestions?
Are you certain you have the correct IP address? If you have a router to the Internet, this would be your IP address assigned on the LAN, not your public IP address that the world sees.

What OS?

What firewall did you turn off?

snarlydwarf
2006-01-19, 12:32
I just installed SlimServer and the songs play fine when I connect via http://localhost:9000/stream.mp3 however when I try using my ip address in place of localhost it doesn't work.

I tried turning my firewall off and all of that but still no change. I just don't understand why using localhost would work but using my IP instead of localhost on the same computer doesn't work.

Any suggestions?



Which IP?

Localhost is just 'english' for 127.0.0.1 -- which is, by definition, one of your IP's.

You also have another IP: for many people (ie, those using a router to share their cable or DSL connection around the house) this will be something like 192.168.1.2

That should work, too.

The there is an IP that your router has. Mine for example, is 24.20.(mumble). This one you will not be able to use from within your network with most routers. If you set up 'port forwarding' on the router, it will be possible to use this from
somewhere else on the 'net and connect back to your server.. but by default you won't.

If 127.0.0.1 doesn't work, something is seriously wrong with your computer... it's exactly the same as localhost.

If the 192.168. address doesn't work, that would be almost as odd: it is usually a sign that some firewall is blocking it.

If the router's IP doesn't work, well, that's expected. If it doesn't work from Somewhere Else, then you'll need to convince it to forward ports (and have to deal with security of leaving ports open, but that's another story).

Mark Lanctot
2006-01-19, 12:39
What kind of router do you have?

IIRC it's the router that determines which
physical devices get assigned which IP addresses
based on MAC address.

Some will have a DHCP routing table indicating
which MAC address has which IP address.

To find your MAC and IP addresses at a command
prompt, type "ipconfig /all".

In a static IP arrangement, the router is still
handling transactions - it has to or else it'll
never know which LAN device is requesting what WAN
data. Some routers will show connected devices by
MAC address even with DHCP off, I believe.

Verify that you're using a UNIQUE IP address and
that your router somehow sees your PC. This may
be through some sort of IP address assignment table.

daniel wrote:
> I just installed SlimServer and the songs play fine
when I connect via
> http://localhost:9000/stream.mp3 however when I try
using my ip address
> in place of localhost it doesn't work.
>
> I tried turning my firewall off and all of that but
still no change. I
> just don't understand why using localhost would work
but using my IP
> instead of localhost on the same computer doesn't
work.
>
> Any suggestions?
>
> Thanks a lot,
> --Daniel
>
>

--
___________________________________


Mark Lanctot
___________________________________

daniel
2006-01-19, 12:45
I'm using iTunes (latest version) and Windows XP SP2.

I'm on a cable broadband connection. localhost and 127.0.0.1 do work. I went to http://www.myipaddress.com/ and tried using that IP but it didn't work, and now I know why (public IP the world sees won't work as JJZolx said).

Oh, and it was the Windows Firewall I disabled which had no effect. I don't have any other firewall installed nor virus protection software.

How can I find out the IP of my LAN? I tried righ-clicking on "Local Area Connection" under the Network Connections menu and selected "Status". Then I selected the Support tab at the top and clicked the Details... button. And it gave me this info (numbers removed):

Physical Address:
IP Address:
Subnet Mask:
Default Gateway:
DHCP Server:
Lease Obtained:
Lease Expires:
DNS Servers:
WINS Server:

So I then tried using those different numbers to connection to SlimServer and none of them worked except for the "IP Address" number which is the 192.168.1.2 type number snarlydwarf mention. When I used that number it connected to SlimServer but music wouldn't play through the browser, it said it was playing and the stream in iTunes was playing but no sound came through.

Robin Bowes
2006-01-19, 12:54
daniel said the following on 01/19/2006 07:45 PM:
> How can I find out the IP of my LAN? I tried righ-clicking on "Local
> Area Connection" under the Network Connections menu and selected
> "Status". Then I selected the Support tab at the top and clicked the
> Details... button. And it gave me this info (numbers removed):
>
> Physical Address:
> IP Address:
> Subnet Mask:
> Default Gateway:
> DHCP Server:
> Lease Obtained:
> Lease Expires:
> DNS Servers:
> WINS Server:

ROTFLMFHO!!!!!

A Tech Support classic!

R.

Mark Lanctot
2006-01-19, 13:05
So I then tried using those different numbers to connection to SlimServer and none of them worked except for the "IP Address" number which is the 192.168.1.2 type number snarlydwarf mention. When I used that number it connected to SlimServer but music wouldn't play through the browser, it said it was playing and the stream in iTunes was playing but no sound came through.

That is normal and things are working properly now. The browser doesn't play the music, you either need a Squeezebox (hardware player) or a software player capable of playing MP3 streams. The Softsqueeze is somewhere in between: it's a software emulation of a Squeezebox.

If you have other computers on your network they should be able to access SlimServer at the same address.

daniel
2006-01-19, 13:16
That is normal and things are working properly now. The browser doesn't play the music, you either need a Squeezebox (hardware player) or a software player capable of playing MP3 streams. The Softsqueeze is somewhere in between: it's a software emulation of a Squeezebox.

If you have other computers on your network they should be able to access SlimServer at the same address.


Well like I said I'm using iTunes to play the stream. When I used the http://192.168.1.100:9000/stream.mp3 type address in iTunes is successfully connected to the stream and was streaming, and then I opened http://192.168.1.100:9000 with my browser and added a song to the playlist and clicked play. However no sound came through my speakers even though it was playing according to the right panel in the browser. Are you saying this is normal?
Also, will users outside my network be able to use the http://192.168.1.100:9000/stream.mp3 type address to connect and listen to my music?

I also did the ipconfig /all command you mentioned and it gave me the same info as I posted above (the Physical Address:, IP Address:, Subnet Mask:, etc. list) however it did say that "IP Routing" was NOT enabled and WINS Proxy was also NOT enabled. Does that matter? DHCP was inabled though.

Oh and my router is a Lynksys WT54G 2.4GHz.

MrC
2006-01-19, 17:55
However no sound came through my speakers even though it was playing according to the right panel in the browser.

How are you music files encoded (what format)?

daniel
2006-01-19, 21:30
How are you music files encoded (what format)?

mp3 format

Mark Lanctot
2006-01-20, 08:28
Well no, that's not normal. What I meant was it's
normal for no sound to play when looking at just
the SlimServer web page, i.e. the page doesn't
have a play applet in it. :-)

Any application capable of playing an .mp3 stream
should work. I can't tell you about iTunes
because I never have and never will have it on my
system. When I used Winamp it worked fine, now
that I use foobar2000 it works fine. You can try
SoftSqueeze - just click on Help - SoftSqueeze on
any computer displaying the SlimServer web page.

Your firewall should indicate traffic flow out of
your machine. I know on mine that's how I can
tell that SlimServer is sending a stream out.
Another indication that this is working is that
your player will first indicate that the title of
the song is "Welcome to SlimServer" which will
change to the title of the song when it actually
starts playing.

Also your router will prevent outside users from
getting in and seeing your sound stream.
192.168.xxx.xxx addresses don't exist on the
Internet, they are reserved for private use, and
even if they did, they would resolve to an
internal address on someone's system.

I'm not sure by your statement if you want
external access or want to prevent it. As is,
external access is blocked. If you want external
access, you set up port forwarding on your router.
On the other side of the coin, if you want extra
protection against outside access, you can
restrict SlimServer access by IP address. But
both these are more advanced concepts, let's solve
this first problem.

daniel wrote:
> Mark Lanctot Wrote:
>> That is normal and things are working properly now.
The browser doesn't
>> play the music, you either need a Squeezebox
(hardware player) or a
>> software player capable of playing MP3 streams.
The Softsqueeze is
>> somewhere in between: it's a software emulation of
a Squeezebox.
>>
>> If you have other computers on your network they
should be able to
>> access SlimServer at the same address.
>
>
> Well like I said I'm using iTunes to play the
stream. When I used the
> http://192.168.1.100:9000/stream.mp3 type address in
iTunes is
> successfully connected to the stream and was
streaming, and then I
> opened http://192.168.1.100:9000 with my browser and
added a song to
> the playlist and clicked play. However no sound came
through my
> speakers even though it was playing according to the
right panel in the
> browser. Are you saying this is normal?
> Also, will users outside my network be able to use
the
> http://192.168.1.100:9000/stream.mp3 type address to
connect and listen
> to my music?
>
> I also did the ipconfig /all command you mentioned
and it gave me the
> same info as I posted above (the Physical Address:,
IP Address:, Subnet
> Mask:, etc. list) however it did say that "IP
Routing" was NOT enabled
> and WINS Proxy was also NOT enabled. Does that
matter? DHCP was inabled
> though.
>
> Oh and my router is a Lynksys WT54G 2.4GHz.
>
>

--
___________________________________


Mark Lanctot
___________________________________