/ Published in: VB.NET
URL: http://foro.el-hacker.com/f46/obteniendo-ip-publica-vbulletin-net-167504/
Expand |
Embed | Plain Text
Imports System.Net Private Function GETIP() Dim req As HttpWebRequest = WebRequest.Create("http://whatismyip.com/automation/n09230945.asp") Dim res As HttpWebResponse = req.GetResponse() Dim Stream As Stream = res.GetResponseStream() Dim sr As StreamReader = New StreamReader(Stream) Return (sr.ReadToEnd()) End Function MsgBox(GETIP())
You need to login to post a comment.
