{"id":1283,"date":"2026-01-09T14:47:47","date_gmt":"2026-01-09T14:47:47","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1283"},"modified":"2026-01-09T14:47:47","modified_gmt":"2026-01-09T14:47:47","slug":"mwnci-myip-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-myip-function\/","title":{"rendered":"Mwnci myip() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>myip<strong>()<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>myip()<\/i> function returns an array of IP&#8217;s that are configured on the servers&#8217; network interfaces.<br \/>\nIf there is nothing configured an array containing one element of 127.0.0.1 should be returned. <\/p>\n<h2>Example<\/h2>\n<pre>include(\"net\")\r\nprintln(\"My IP's are: \", myip())\r\n\r\nMy IP's are: [\"127.0.0.1\", \"192.168.0.84\"]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax myip() Description The myip() function returns an array of IP&#8217;s that are configured on the servers&#8217; network interfaces. If there is nothing configured an array containing one element of 127.0.0.1 should be returned. Example include(&#8220;net&#8221;) println(&#8220;My IP&#8217;s are: &#8220;, myip()) My IP&#8217;s are: [&#8220;127.0.0.1&#8221;, &#8220;192.168.0.84&#8221;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1283","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1283"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1283\/revisions"}],"predecessor-version":[{"id":1284,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1283\/revisions\/1284"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}