View Single Post
  #21 (permalink)  
Old April 25th, 2004
limenut limenut is offline
Enthusiast
 
Join Date: July 12th, 2003
Posts: 46
limenut is flying high
Default

Quote:
Originally posted by sberlin
Re: Firefox & Linux
Not sure what's going wrong. LimeWire should be listening on a specific port for the request. To be honest, I'm not sure this will be fixed before 4.0 unless it's also happening on Windows and/or OSX.
"netstat -lpnt" in linux shows limewire listening on both port 6346 and 45100.

Code:
$ netstat -lpnt
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 :::6346                 :::*                    LISTEN      13706/java
tcp        0      0 :::45100                :::*                    LISTEN      13706/java
I changed the browser from "firefox $URL$" to "konqueror $URL$" and finally could see what URL it is trying.

This is a sample url that is resulting in a message in konqueror saying "Connection to host localhost is broken":
http://localhost:45100/magcmd/detail?addr=<my-ip>:6346&n0=LimeWireLinux.bin&u0=GZLEHA3FR46YNHEU5 AEFUTAM5HYEEEMF

When I change "localhost" to "127.0.0.1", the magnet details page loads just fine. It is only when it is set to "localhost" that it results in limewire rejecting the connection.

My /etc/hosts file has:
Code:
127.0.0.1       localhost
# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
A telnet session:
Code:
$ telnet localhost 45100
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET /magcmd/detail?addr=<my-ip>:6346&n0=LimeWireLinux.bin&u0=GZLEHA3FR46YNHEU5AEFUTAM5HYEEEMF HTTP/1.1
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Accept: text/html, image/jpeg, image/png, text/*, image/*, */*
Accept-Encoding: x-gzip, x-deflate, gzip, deflate, identity
Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5
Accept-Language: en
Host: localhost:45100

Connection closed by foreign host.
$
Yet telnet 127.0.0.1 and pasting the exact same thing gets HTML as a result. It seems like LimeWire doesn't like SuSE's usage of IPv6.

Code:
$ telnet 127.0.0.1 45100
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /magcmd/detail?addr=<my-ip>:6346&n0=LimeWireLinux.bin&u0=GZLEHA3FR46YNHEU5AEFUTAM5HYEEEMF HTTP/1.1
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Accept: text/html, image/jpeg, image/png, text/*, image/*, */*
Accept-Encoding: x-gzip, x-deflate, gzip, deflate, identity
Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5
Accept-Language: en
Host: localhost:45100

HTTP/1.1 200 OK
Server: LimeWire 3.9.5
Content-type:text/html
Content-length:2182

<html here>

Last edited by limenut; April 25th, 2004 at 03:53 PM.