Código Fonte - O melhor conteúdo para programadores

ASP / Segurança

Informações sobre um IP / Domínio com o componente NetDLL


enviado por Hugo Felipe
O NetDLL é um componente para testes ICMP (Internet Control Message Protocol).

Inclui função de Ping, conversor de hostname para IP e IP para hostname.
<%
' Cria uma instância do controle
Set NetDll = Server.CreateObject("NETDLL.Network")

Response.Write "<b>Ping:</b> "& netDLL.Ping("209.85.193.147", "5", True) &"<br />"
Response.Write "<b>GetHostFromIP:</b> "& netDLL.GetHostFromIP("209.85.193.147") &"<br />"
Response.Write "<b>GetIPAddress:</b> "& netDLL.GetIPAddress("www.google.com.br") &"<br />"
Response.Write "<b>GetIPHostName:</b> "& netDLL.GetIPHostName() &"<br />"
Response.Write "<b>Using GetIPAddress with GetIPHostName:</b> "& netDLL.GetIPAddress( netDLL.GetIPHostName() ) &"<br />"

' Tira o objeto da memória
Set NetDll = Nothing
%>


Versão impressa gerada em: quarta-feira, 25 de novembro de 2009

© Copyright 2006 - R&W Consulting.