Hallo Stefan,
Habe vielleicht die L�sung f�r dein Problem.
//Declare the IPHostEntry
IPHostEntry serverHE;
//Initialize a Socket of Type ICMP
Socket socket =
new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 1000);
// Get the server endpoint
try
{
serverHE = Dns.GetHostByAddress(ip);
}
catch(Exception)
{
socket.Close();
return "Host not found"; // uh-oh!
}
IPEndPoint ipepServer = new IPEndPoint(serverHE.AddressList[0], 0);
EndPoint epServer = (ipepServer);
// close the socket
socket.Close();
return serverHE.HostName;
Hoffe es ist das, was du wolltest.
Gru�,
Pierre P�hler
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Mayer, Stefan
Gesendet: Mittwoch, 23. Juni 2004 10:41
An: [EMAIL PROTECTED]
Betreff: [Asp.net] Asp.net - Hostaufl�sung
Guten morgen!
Ich soll ein Projekt, wo der Hostname zu einer IP-Adresse mittels Komponente ermittelt
wird, von asp nach ASP.net migrieren. Auf dem neuen Server gibt's die Komponente nicht
mehr.
Ist das irgendwie mit .net-Boardmitteln m�glich?
Stefan.
*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************
*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************