xombra / firefox-showip

Automatically exported from code.google.com/p/firefox-showip
0 stars 0 forks source link

Local IP is not displayed correctly #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit a site
2. Mouse-over the IP displayed

What is the expected output? What do you see instead?
My local IP, but I am told I am surfing with 127.0.1.1, which is clearly wrong.

What version of the product are you using? On what operating system?
Latest on Debian Linux

Original issue reported on code.google.com by google....@pobox.madduck.net on 30 Aug 2008 at 3:56

GoogleCodeExporter commented 9 years ago
Without a reflector I've to rely on the dns libraries to give a correct 
response to a
reverse lookup of localhost... I'll see if I can parse some /proc output or if 
there
is an internal firefox api for this task.

Original comment by jan.ditt...@gmail.com on 14 Feb 2009 at 9:16

GoogleCodeExporter commented 9 years ago
There are at least four possible solutions:
a) rely on @mozilla.org/network/dns-service;1 myHostName 
   to provide a correct answer and for the DNS server to resolve it properly.
   -> This probably only works correctly if you're directly hooked to the internet
   and your DNS server is giving the right answer. This is how it is done now.

b) use an external reflector service like other firefox addons (My IP, etc.)
   -> privacy concerns. Also needs a reliable external server

c) parse platform specific files (/proc, ipconfig, ...)
   -> complicated, prone to breakage, will alarm security experts if firefox
      launches external applications, no access to all platforms

d) Hook into the current request and captcher the local IP
   -> most promising. I'll see if there is an interface for this

Original comment by jan.ditt...@gmail.com on 18 Feb 2009 at 5:11

GoogleCodeExporter commented 9 years ago

Original comment by jan.ditt...@gmail.com on 18 Feb 2009 at 5:11

GoogleCodeExporter commented 9 years ago
In the current version you can use an external reflector service.

Original comment by jan.ditt...@gmail.com on 5 Mar 2011 at 8:30