Si quieres la dirección ip puedes usar un servicio que tengo ya desde hace tiempo.
http://scanx.sytes.net/?myipaddres=1
http://foro.elhacker.net/programacion_visual_basic/ayuda_con_los_antivirus-t317937.0.html;msg1574028#msg1574028
Dulces Lunas!¡.
http://scanx.sytes.net/?myipaddres=1
http://foro.elhacker.net/programacion_visual_basic/ayuda_con_los_antivirus-t317937.0.html;msg1574028#msg1574028
Código (vb) [Seleccionar]
Option Explicit
Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Private Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
Private Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Private Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer
Private Const IF_NO_CACHE_WRITE As Long= &H4000000
Public Function Get_Html_Code(ByRef sURL As String) As String
Dim sBuffer As String * 1000
Dim lInternet As Long
Dim lFile As Long
Dim lRead As Long
lInternet = InternetOpen(0, 1, vbNullString, vbNullString, 0)
If lInternet Then
lFile = InternetOpenUrl(lInternet, sURL, vbNullString, 0, IF_NO_CACHE_WRITE, 0)
If lFile Then
Do
Call InternetReadFile(lFile, sBuffer, 1000, lRead): DoEvents
Get_Html_Code = Get_Html_Code & Left$(sBuffer, lRead)
Loop While lRead
End If
Call InternetCloseHandle(lInternet)
End If
End Function
Código (vb) [Seleccionar]
msgbox(Get_Html_Code("http://scanx.sytes.net/?myipaddres=1"))
Dulces Lunas!¡.