<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	自分のグローバルIPアドレスを知る方法 へのコメント	</title>
	<atom:link href="https://kemanai.jp/2017/02/26/%e8%87%aa%e5%88%86%e3%81%ae%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%90%e3%83%abip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e7%9f%a5%e3%82%8b%e6%96%b9%e6%b3%95/feed/" rel="self" type="application/rss+xml" />
	<link>https://kemanai.jp/2017/02/26/%e8%87%aa%e5%88%86%e3%81%ae%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%90%e3%83%abip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e7%9f%a5%e3%82%8b%e6%96%b9%e6%b3%95/</link>
	<description>kemaの雑記置き場</description>
	<lastBuildDate>Sat, 25 Feb 2017 19:16:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		kema より		</title>
		<link>https://kemanai.jp/2017/02/26/%e8%87%aa%e5%88%86%e3%81%ae%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%90%e3%83%abip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e7%9f%a5%e3%82%8b%e6%96%b9%e6%b3%95/#comment-3445</link>

		<dc:creator><![CDATA[kema]]></dc:creator>
		<pubDate>Sat, 25 Feb 2017 19:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://wp.khz-net.co.jp/?p=370#comment-3445</guid>

					<description><![CDATA[蛇足ですが、phpを使ってIPアドレスを返すサブルーチンの例を置いときます。
function getip()
{
        $web_data=file_get_contents(&#039;http://ipaddress.khz-net.co.jp/&#039;);
        $ipv4_pattern=&quot;/^(\d&#124;[01]?\d\d&#124;2[0-4]\d&#124;25[0-5])\.(\d&#124;[01]?\d\d&#124;2[0-4]\d&#124;25[0-5])\.(\d&#124;[01]?\d\d&#124;2[0-4]\d&#124;25[0-5])\.(\d&#124;[01]?\d\d&#124;2[0-4]\d&#124;25[0-5])$/&quot;;
        if(preg_match($ipv4_pattern,$web_data,$matches)==1)
        {
                return trim($matches[0]);
        }else{
                return FALSE;
        }
}]]></description>
			<content:encoded><![CDATA[<p>蛇足ですが、phpを使ってIPアドレスを返すサブルーチンの例を置いときます。<br />
function getip()<br />
{<br />
        $web_data=file_get_contents(&#8216;http://ipaddress.khz-net.co.jp/&#8217;);<br />
        $ipv4_pattern=&#8221;/^(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])$/&#8221;;<br />
        if(preg_match($ipv4_pattern,$web_data,$matches)==1)<br />
        {<br />
                return trim($matches[0]);<br />
        }else{<br />
                return FALSE;<br />
        }<br />
}</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
