Check public IP with a Raspberry Pi - Page 1
Forum section: electronics / projects

author: davidgatti
author_rank: Newbie
timestamp: August 04, 2016, 12:46:51 pm
content: Hello all,I'm new hear but I'v been following David for a bunch of years now. I decided to create an account, because I wanted to share a small project that I did for myself out of necessity, and I think that other could benefit from it toIt is called WiMi, and the project is located hearhttps://github.com/davidgatti/What-Is-My-IPBasically it is a solution to get your public IP. No need to create free accounts, and be spammed to upgrade to a payed oneI would love to have someone test it to let me know if everything is working, since I tested it only on my side.Best

author: rs20
author_rank: Super Contributor
timestamp: August 04, 2016, 05:23:52 pm
content: Just out of curiosity, what's wrong with this?:$ wget -O - -o/dev/nullhttp://checkip.dyndns.org/

author: bingo600
author_rank: Super Contributor
timestamp: August 05, 2016, 07:16:21 am
content: Orcurl icanhazip.com/Bingo

author: davidgatti
author_rank: Newbie
timestamp: August 05, 2016, 09:04:30 am
content: Thank you for the interestRegarding your questions. The solution that you provided is useful if you are at home, and just want to check your public IP. The problem that I wanted to solve was to know the IP of my home even when I'm not at home. This way I can go somewhere and I'll always know the IP to my RBP.I have my own server that I can access and check the IP, and only I have access to it.In the future for example I see myself adding the support for multiple IP, so if you have more then one dynamic IP, you can keep track of them all.I hope now the explanation makes more sense

author: edavid
author_rank: Super Contributor
timestamp: August 06, 2016, 08:26:04 pm
content: For the typical case where your home IP doesn't change often, it's simpler to send yourself email when it does... no server required.

author: Kilrah
author_rank: Unknown
timestamp: August 06, 2016, 08:31:33 pm
content: Quote from: davidgatti on August 05, 2016, 09:04:30 amWhy bother with IPs when you've got Dynamic DNS?

author: eugenenine
author_rank: Frequent Contributor
timestamp: August 06, 2016, 10:05:26 pm
content: Same here, I use a ddns daemon that updates afraid.org.

author: davidgatti
author_rank: Newbie
timestamp: August 07, 2016, 08:25:55 am
content: Quote from: edavid on August 06, 2016, 08:26:04 pmIn my case it can change twice a day, so to me it is convenient

author: Kilrah
author_rank: Unknown
timestamp: August 07, 2016, 09:05:52 am
content: Dynamic DNS can update 100 times a day automatically if needed...

author: davidgatti
author_rank: Newbie
timestamp: August 08, 2016, 06:19:30 am
content: That is good to hear

author: Berni
author_rank: Super Contributor
timestamp: August 08, 2016, 09:09:44 am
content: Yeah a dynamic IP could change at any time, some ISPs renew the IPs every 24h while others do it when the modem reboots.If you want to have a look at yourself from the outside a good way is to use a web proxyhttps://www.hidemyass.com/proxyYour request goes to a server somewhere, that server then connects to the website you want and forwards the data back to you. Its useful for checking if your LAN is configured correctly to port forward.

author: technix
author_rank: Super Contributor
timestamp: August 11, 2016, 02:59:52 am
content: An alternative to this is to use a dynamic DNS service and set up an automatic updater like inadyn on the Pi. This gives you a static DNS name hiding the dynamic IP address.

author: kaevee
author_rank: Regular Contributor
timestamp: August 12, 2016, 01:21:03 am
content: Another approach is to use an IPv6 tunnel. IPv6 tunnel will assign a IPv6 address to the end point. If you are behind NAT, you can consider using "Miredo".Check outhttp://www.remlab.net/miredo/You will find "miredo" package in almost all Linux distributions.Regards,Venkat

author: mark03
author_rank: Frequent Contributor
timestamp: August 12, 2016, 04:13:28 pm
content: Or we could all demand that our ISPs quit the foot-dragging and switch to IPv6 already, do away with NAT, assign everyone a static block of addresses, and get back to the Internet as it was originally designed.Alas, this makes so much sense it has little chance of happening

author: davidgatti
author_rank: Newbie
timestamp: August 13, 2016, 06:13:17 pm
content: Quote from: mark03 on August 12, 2016, 04:13:28 pmSo true

author: rs20
author_rank: Super Contributor
timestamp: August 20, 2016, 11:05:30 pm
content: Quote from: mark03 on August 12, 2016, 04:13:28 pmThey can and will do this for you... for a fee.

author: C
author_rank: Super Contributor
timestamp: August 21, 2016, 12:12:58 am
content: You could get IP6 via a IPv6 Tunnel Broker.https://en.wikipedia.org/wiki/Tunnel_brokerSome are free.