WatskeBart Posted April 25, 2012 Share Posted April 25, 2012 (edited) EDIT: Just contributed the code on GitHub ;) The reveal public IP option from the status page wasn't working on my pineapple with FW v1.1.1 Probably because of changes at http://whatismyip.org I have a new piece of code for you all :) Edit this file in your favorite texteditor: (i used notepad++) /www/pineapple/index.php Look for this line: (line 77 in my case) echo exec("wget -qO- http://whatismyip.org") . "<br />"; And change it into this line: echo exec("wget -qO- http://checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' ") . "<br />"; If you want to test the code first, login your pineapple via SSH and copy/paste following code: wget -qO- http://whatismyip.org this will fail :P but wget -qO- http://checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' will work Maybe Seb could take this fix in next firmware release ;) Edited April 28, 2012 by WatskeBart Quote Link to comment Share on other sites More sharing options...
SilverExploit Posted April 26, 2012 Share Posted April 26, 2012 The reveal public IP option from the status page wasn't working on my pineapple with FW v1.1.1 Probably because of changes at http://whatismyip.org I have a new piece of code for you all :) Edit this file in your favorite texteditor: (i used notepad++) /www/pineapple/index.php Look for this line: (line 77 in my case) echo exec("wget -qO- http://whatismyip.org") . "<br />"; And change it into this line: echo exec("wget -qO- http://checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' ") . "<br />"; If you want to test the code first, login your pineapple via SSH and copy/paste following code: wget -qO- http://whatismyip.org this will fail :P but wget -qO- http://checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' will work Maybe Seb could take this fix in next firmware release ;) replacing http://whatismyip.org with http://icanhazip.com work perfectly too :) Quote Link to comment Share on other sites More sharing options...
Vulture Posted April 26, 2012 Share Posted April 26, 2012 This is on the bug list, I am sure it will be addressed in the next release. Quote Link to comment Share on other sites More sharing options...
Gavin Steed Posted April 26, 2012 Share Posted April 26, 2012 replacing http://whatismyip.org with http://icanhazip.com work perfectly too :) I second icanhazip.com! wget -qO- icanhazip.com Quote Link to comment Share on other sites More sharing options...
WatskeBart Posted April 26, 2012 Author Share Posted April 26, 2012 I second icanhazip.com! wget -qO- icanhazip.com I agree the code stays clean and crisp that way. But i'm not to fond with small or privately owned websites, because you never know for how long they will be up or support the service. I think that a website like dyndns, won't be leaving the interwebs soon :) Stability is my goal ;) Quote Link to comment Share on other sites More sharing options...
SilverExploit Posted April 26, 2012 Share Posted April 26, 2012 I agree the code stays clean and crisp that way. But i'm not to fond with small or privately owned websites, because you never know for how long they will be up or support the service. I think that a website like dyndns, won't be leaving the interwebs soon :) Stability is my goal ;) .dyndns.org websites are FREE domain names given by dyndns.com. I know this because I have a .dyndns.org site myself becuase I dont want to pay for a domain name yet. Quote Link to comment Share on other sites More sharing options...
WatskeBart Posted April 26, 2012 Author Share Posted April 26, 2012 (edited) Yep stupid it totally forgot about that subdomain system of dyndns.com :P I thought checkip.dyndns.com was part of dyndns itself So icanhazip.com is just as good :D Edited April 26, 2012 by WatskeBart Quote Link to comment Share on other sites More sharing options...
telot Posted April 27, 2012 Share Posted April 27, 2012 ipchicken has been around for years and years...I don't have my pineapple near me (traveling unfortunately without it.../cry) to test, but has anyone gotten that to work? telot Quote Link to comment Share on other sites More sharing options...
WatskeBart Posted April 27, 2012 Author Share Posted April 27, 2012 ipchicken has been around for years and years...I don't have my pineapple near me (traveling unfortunately without it.../cry) to test, but has anyone gotten that to work? telot It gives the same result as whatismyip.org ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.