
Hi, I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit. What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better. -- William Park <opengeometry@yahoo.ca>

Hello, Try these: curl ifconfig.me curl icanhazip.com curl ident.me curl ipecho.net/plain curl whatismyip.akamai.com curl myip.dnsomatic.com curl curlmyip.com curl -s checkip.dyndns.org | sed 's/.*IP Address: \([0-9\.]*\).*/\1/g' Best, Mojtaba On 2018-01-27 11:16 PM, William Park via talk wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better.

I have wanted to know how to do this but never had the reason. My first inclination is to write a shell script in a loop. You can control the timing and save results to a file if necessary. Here's the command that seems to work https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-... dig +short myip.opendns.com @resolver1.opendns.com It seems to work. I usually check my ip using a google search. For a faster response you could find the RoBeUs dns server. Post up your script if you write one. Don On 27 January 2018 at 14:46, William Park via talk <talk@gtalug.org> wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better. -- William Park <opengeometry@yahoo.ca> --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

On 27 January 2018 at 20:03, Don Tai via talk <talk@gtalug.org> wrote:
I have wanted to know how to do this but never had the reason. My first inclination is to write a shell script in a loop. You can control the timing and save results to a file if necessary. Here's the command that seems to work
https://unix.stackexchange.com/questions/22615/how-can-i- get-my-external-ip-address-in-a-shell-script
dig +short myip.opendns.com @resolver1.opendns.com
It seems to work. I usually check my ip using a google search. For a faster response you could find the RoBeUs dns server.
Post up your script if you write one.
Don
On 27 January 2018 at 14:46, William Park via talk <talk@gtalug.org> wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better.
There are a lot of services like this. Here's one I've used in the past: $ curl ifconfig.co xx.yyy.zz.www It returns just an IP address, which is very useful (and low bandwidth). I have no idea if it has a rate limit. Your problem if you're round-robin-ing several such sources will be consistency. Building on a previously mentioned idea, I'd suggest writing a function for each source that returns only the IP (or whatever information you're interested in). So ... is the problem disconnection? The duration of the disconnection? The fact that your IP changes? I personally wouldn't be concerned if my IP changed (I don't run externally accessible services), so long as I have a connection. So I'd be logging a never-ending ping to some source like 8.8.4.4 (Google DNS) to determine how long and how often I was disconnected for. (I'm not really looking for answers to these questions, just suggesting things to think about.) -- Giles https://www.gilesorr.com/ gilesorr@gmail.com

ifconfig.me and icanhazip.com works the same. On Jan 27, 2018 19:25, "Giles Orr via talk" <talk@gtalug.org> wrote:
On 27 January 2018 at 20:03, Don Tai via talk <talk@gtalug.org> wrote:
I have wanted to know how to do this but never had the reason. My first inclination is to write a shell script in a loop. You can control the timing and save results to a file if necessary. Here's the command that seems to work
https://unix.stackexchange.com/questions/22615/how-can-i-get -my-external-ip-address-in-a-shell-script
dig +short myip.opendns.com @resolver1.opendns.com
It seems to work. I usually check my ip using a google search. For a faster response you could find the RoBeUs dns server.
Post up your script if you write one.
Don
On 27 January 2018 at 14:46, William Park via talk <talk@gtalug.org> wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better.
There are a lot of services like this. Here's one I've used in the past:
$ curl ifconfig.co xx.yyy.zz.www
It returns just an IP address, which is very useful (and low bandwidth). I have no idea if it has a rate limit.
Your problem if you're round-robin-ing several such sources will be consistency. Building on a previously mentioned idea, I'd suggest writing a function for each source that returns only the IP (or whatever information you're interested in).
So ... is the problem disconnection? The duration of the disconnection? The fact that your IP changes? I personally wouldn't be concerned if my IP changed (I don't run externally accessible services), so long as I have a connection. So I'd be logging a never-ending ping to some source like 8.8.4.4 (Google DNS) to determine how long and how often I was disconnected for. (I'm not really looking for answers to these questions, just suggesting things to think about.)
-- Giles https://www.gilesorr.com/ gilesorr@gmail.com
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

Yes, my main concern is connection, because I have VoIP phone and is no fun getting disconnected every hour or so. But, Carrytel told me to connect my PC directly to the cable modem. Right after talking to them, my IP and DHCP lease time changed. Before it was 1 hours lease, now it's 48 hours. I'll look into "ping". Problem with ping is that it prints timestamp in Unix seconds. I want it in regular date/time. -- William Park <opengeometry@yahoo.ca> On Sat, Jan 27, 2018 at 09:25:05PM +0000, Giles Orr wrote:
So ... is the problem disconnection? The duration of the disconnection? The fact that your IP changes? I personally wouldn't be concerned if my IP changed (I don't run externally accessible services), so long as I have a connection. So I'd be logging a never-ending ping to some source like 8.8.4.4 (Google DNS) to determine how long and how often I was disconnected for. (I'm not really looking for answers to these questions, just suggesting things to think about.)

On Sat, 2018/01/27 04:45:55PM -0500, William Park via talk <talk@gtalug.org> wrote: | On Sat, Jan 27, 2018 at 03:03:56PM -0500, Don Tai wrote: | > dig +short myip.opendns.com @resolver1.opendns.com | | This I like, even though it only applies for OpenDNS. I think it's general purpose - I believe it replies with your source address - no previous record in opendns needed.

On 2018-01-27 06:33 PM, John Sellens via talk wrote:
On Sat, 2018/01/27 04:45:55PM -0500, William Park via talk <talk@gtalug.org> wrote: | On Sat, Jan 27, 2018 at 03:03:56PM -0500, Don Tai wrote: | > dig +short myip.opendns.com @resolver1.opendns.com | | This I like, even though it only applies for OpenDNS.
I think it's general purpose - I believe it replies with your source address - no previous record in opendns needed.
You could put a simple PHP file on an external webserver you control that will return the IP address. -- Cheers! Kevin. http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include <disclaimer/favourite> | --Chris Hardwick

On Sat, Jan 27, 2018 at 03:03:56PM -0500, Don Tai wrote:
Post up your script if you write one.
Check out <https://wiki.gtalug.org/user:william:start#getting_external_ip> I think Amazon and Google sites have the longest reliability. :-) -- William Park <opengeometry@yahoo.ca>

The modem may support SNMP. If it does then you should be able to get all the information you need that way. SNMP will quite happily allow you to probe every minute or so and if your lucky the modem will support SNMP notifications so that you can event notifications from the modem. On 01/28/2018 12:49 AM, William Park via talk wrote:
On Sat, Jan 27, 2018 at 03:03:56PM -0500, Don Tai wrote:
Post up your script if you write one. Check out <https://wiki.gtalug.org/user:william:start#getting_external_ip>
I think Amazon and Google sites have the longest reliability. :-)
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

are you running their cable or fttn service? On 01/27/2018 02:46 PM, William Park via talk wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better.
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Cable, which is owned by Rogers. -- William On Sat, Jan 27, 2018 at 04:59:15PM -0500, Alvin Starr via talk wrote:
are you running their cable or fttn service?
On 01/27/2018 02:46 PM, William Park via talk wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better.
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- William Park <opengeometry@yahoo.ca>

I am not all that familiar with the cable modems but you should be able to scrape the ip address from the modem. They will be using DHCP or possibly ppoe but one way or another your modem will have your address. On 01/27/2018 05:10 PM, William Park via talk wrote:
Cable, which is owned by Rogers.
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

And while you're scraping that, you can ping the default gateway that the "modem" gives you and as long as you can get there then you're connected. I do that to keep an eye on what Rogers does in the neighbourhood. I ping the external address of my firewall, the default gateway, the dns servers listed then google.ca and rogers.com. CPE001b211b9dbf-CMf0f2495bbda0.cpe.net.cable.. ok 99.224.22.24 ok 99.224.0.1 ok 64.71.255.204 ok 64.71.255.198 ok www.google.ca ok www.rogers.com -- Jose Dias jose "dot" dias "at" DiasLan "dot" net
-----Original Message----- From: talk [mailto:talk-bounces@gtalug.org] On Behalf Of Alvin Starr via talk Sent: Saturday, January 27, 2018 7:49 PM To: William Park via talk Subject: Re: [GTALUG] Getting external IP
I am not all that familiar with the cable modems but you should be able to scrape the ip address from the modem.
They will be using DHCP or possibly ppoe but one way or another your modem will have your address.
On 01/27/2018 05:10 PM, William Park via talk wrote:
Cable, which is owned by Rogers.
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

Update: Stable connection for 24 hours. So, consider it resolved. Observation: 1. Connect PC directly to new modem (Technicolor TC4350). It's stable. 2. Connect an old TP-Link router (TL-WDR4300) to the modem. It's stable. 3. Connect the current Asus router (RT-N66U) to the modem. It's flaky. I was about to throw in the towel and switch back to Teksavvy. Then, I remembered that the old TP-Link router had been reset to factory default after being retired. So, I did factory reset on the Asus router. The connection is stable. What happened? I don't know. I hope it helps others thinking about switching to Carrytel.ca. -- William Park <opengeometry@yahoo.ca> On Sat, Jan 27, 2018 at 02:46:35PM -0500, William Park via talk wrote:
Hi,
I recently switched to CarryTel, and I'm getting disconnected quite often. So, I want to monitor my external IP, every minute. For this, I usually use <http://myexternalip.com/raw>, but it has rate limit.
What site do you use to get your external IP? I want to round-robin through these. Google gives you this when you search "what is my ip", but it's difficult to dig it out. Simpler, the better. -- William Park <opengeometry@yahoo.ca> --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
participants (9)
-
Alvin Starr
-
Don Tai
-
Giles Orr
-
John Sellens
-
Jose A. Dias
-
Kevin Cozens
-
Mauro Souza
-
Mojtaba Moodi
-
William Park