<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ipify &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/tag/ipify/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Wed, 25 Sep 2024 14:26:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Update: ipify for Xojo</title>
		<link>https://blog.xojo.com/2021/09/03/update-ipify-for-xojo/</link>
		
		<dc:creator><![CDATA[Javier Menendez]]></dc:creator>
		<pubDate>Fri, 03 Sep 2021 15:57:11 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ipify]]></category>
		<category><![CDATA[Singleton]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Xojo API 2.0]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=9163</guid>

					<description><![CDATA[There are plenty of times when your Xojo apps might need to know the public or external IP address is, and there are a lot of web sites or services that you can use with Xojo to find that. I found ipify to be easy to use]]></description>
										<content:encoded><![CDATA[
<p><strong>This post was originally posted in <a href="https://blog.xojo.com/2017/09/26/ipify-for-xojo/">2017</a> and has been updated in this post using Xojo API 2.0.</strong></p>



<p><a href="https://www.ipify.org/">ipify</a> is a very useful web service (an API) that promises to always be available to attend requests, letting us know the public (or external) IP address we are using to connect to Internet. We can get this information as pure Text or in <strong>JSON</strong> or <strong>XML</strong> formats.</p>



<p>There are plenty of times when your Xojo apps might need to know the public or external IP address is, and there are a lot of web sites or services that you can use with Xojo to find that.</p>



<p>I found ipify to be easy to use, plus it is easily available due to being hosted by <a href="http://heroku.com/">Heroku</a>. That means, for example, that if half the Internet is down…you still can be confident to reach the ipify service.</p>



<p>Using ipify from a Xojo desktop apps is as simple as using this code:</p>



<p><code>Var request as New URLConnection<br>Dim s as String = request.SendSync("GET","https://api.ipify.org",10)</code></p>



<p>But sometimes we need additional information; for example if the IP address has changed over time, or simply periodically checking for IP address changes. That is something that you can find in the <a href="https://www.dropbox.com/s/87zq4ksgq8tlaon/IPify.xojo_binary_project.zip?dl=1">ipify project for Xojo available here</a>.</p>



<p><strong>ipify for Xojo</strong> is designed as a <a href="https://blog.xojo.com/2016/06/08/design-patterns-in-xojo-singleton/">Singleton class</a>, that means that you even don’t need to instatiate it in order to get the current IP address, know if the IP has changed over time, or even instruct the class to periodically check for the IP address, notifying the registered object every time with the current IP address and if it is the same or has changed from the last time it was checked.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
