Workflow Example: Get External IP Address

This very simple workflow loads the content of a URL at which contains just the external IP address of the iOS device you are using to run the workflow. This is not the IP address of your device on the local network, but rather the IP address of your connection (cellular or WiFi) out onto the Internet.

The workflow displays the IP address within an alert box with the offer to copy it to the device clipboard. If the user cancels the workflow ends at this point. If not, the contents of the device clipboard will be replaced with the IP address found on the web page.

References (9)

References allow you to track sources for this article, as well as articles that were written in response to this article.

Reader Comments (1)

In version 1.3 (released 27 August 2015), Workflow included a new "Get Current IP Address" action that can be set to retrieve an external IP address in one action (probably in a similar manner to what the two steps above do). So if you need an external IP address, you should use that action, but the example shown here still may b useful in understanding how you can retrieve data from a web page.

September 12, 2015 | Registered CommenterStephen Millard

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>