Ruby 使用 Winsock 2015/12/03 49131 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> require "win32ole" ws = WIN32OLE.new "MSWinsock.Winsock" # Retrieve LocalIP property ipAddress = ws.localIP puts "The local IP is : #{ipAddress}"