elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  no-ip checking
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: no-ip checking  (Leído 1,540 veces)
ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
no-ip checking
« en: 13 Septiembre 2008, 20:06 pm »

Good  evening   
Need some  help 
How  can  i  test  my no-ip (ten-no-ip.biz) in  port 80 if  it  work  ?
Hope  to  explain  correct  my question 
thanks   


En línea

naderST


Desconectado Desconectado

Mensajes: 625



Ver Perfil WWW
Re: no-ip checking
« Respuesta #1 en: 13 Septiembre 2008, 20:13 pm »

You can try connecting with Winsock if it success then it is working.

EDIT:

Something like this:

Add a Winsock control called WS.

Código
  1. Option Explicit
  2.  
  3. Private Sub Form_Load()
  4.    If CheckNOIPStatus(WS, "google.com", 80) = True Then
  5.        MsgBox "It's working"
  6.    Else
  7.        MsgBox "U_U"
  8.    End If
  9. End Sub
  10.  
  11. Private Function CheckNOIPStatus(ByVal Winsock As Winsock, ByVal Host As String, ByVal Port As Integer) As Boolean
  12.    Dim OMFG As Long
  13.  
  14.    Winsock.RemoteHost = Host
  15.    Winsock.RemotePort = Port
  16.  
  17.    Winsock.Connect
  18.    DoEvents
  19.  
  20.    While OMFG < 200000
  21.        OMFG = OMFG + 1
  22.        DoEvents
  23.    Wend
  24.  
  25.    If Winsock.State = sckConnected Then
  26.        CheckNOIPStatus = True
  27.    End If
  28. End Function
  29.  
  30.  

I am not sure if that is what you want...


« Última modificación: 13 Septiembre 2008, 21:12 pm por naderST » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
checking nvram
Hardware
vandrall 1 1,983 Último mensaje 8 Febrero 2014, 13:12 pm
por imoen
Checking disk no se inicia « 1 2 »
Windows
buite 11 6,615 Último mensaje 31 Mayo 2017, 19:04 pm
por Randomize
warning rkhunter Checking for suspicious shared memory segments
Seguridad
mcgregorjhon 0 2,380 Último mensaje 10 Noviembre 2017, 08:15 am
por mcgregorjhon
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines