{"image_url":null,"height":"190","provider_name":"Hatena Blog","published":"2009-04-07 12:22:18","type":"rich","blog_url":"https://shokai.hatenadiary.org/","author_name":"shokai","title":"\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092gtalk\u3067\u9001\u4fe1","provider_url":"https://hatena.blog","version":"1.0","url":"https://shokai.hatenadiary.org/entry/20090407/1239074538","width":"100%","categories":["Ubuntu","X32","Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20090407%2F1239074538\" title=\"\u81ea\u5206\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092gtalk\u3067\u9001\u4fe1 - \u6a4b\u672c\u8a73\u89e3\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/shokai/","description":"LAN\u5185\u3067\u30db\u30b9\u30c8\u540d\u89e3\u6c7a\u3067\u304d\u306a\u3044\uff08\u7533\u8acb\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff09\u74b0\u5883\u306a\u306e\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u3092\u5b9a\u671f\u7684\u306bXMPP(Google Talk)\u3067\u81ea\u5206\u5b9b\u3067\u9001\u308b\u4e8b\u306b\u3057\u305f\u3002 \u4ee5\u524d\u4f5c\u3063\u305fgtalk-send.rb\u3092\u5143\u306b\u3002\u81ea\u5206\u3067\u81ea\u5206\u5b9b\u306b\u9001\u3063\u3066\u3059\u3050\u30ed\u30b0\u30a2\u30a6\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u308b\u304b\u3089\u3001\u4ed6\u306e\u30de\u30b7\u30f3\u3067gtalk\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u308c\u3070\u53d7\u4fe1\u3067\u304d\u308b\u3002 #!/usr/bin/env ruby require 'rubygems' require 'xmpp4r' require 'kconv' ifc = `/sbin/ifconfig` # OS\u6bce\u306b\u30d1\u30b9\u304c\u9055\u3046\u304b\u3082 inets = ifc.scan(/.*(inet.*) .*/i) puts\u2026","blog_title":"\u6a4b\u672c\u8a73\u89e3"}