Autor Beitrag
Zack
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Mi 01.01.03 17:20 
Hallo Leute,
vieleicht hat das ja schon mal jemand gemacht, ich möchte ganz schnell und einfach prüfen ob eine gewisse IP ( Ein Server ) online ist, wenn ja eine ausgabe, wenn nein eine ausgabe.. eine eine idee ?

Gruß Zack
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mi 01.01.03 18:01 
Du kannst den Server anpingen. (hier im Forum suchen)
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 01.01.03 18:57 
lad dir mal die INDY komponetenen und die INDY demos runter. da ist ein DEMO dabei, dass dir super zeigt, wei man mit INDY pings abschickt !!!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Do 02.01.03 22:05 
Ich bezweifle, dass das pingen funktioniert!
Viele Firewalls blocken diesen Service. Google läßt ein ping z.B. nicht zu, obwohl es online ist. Du könntest aber versuchen mehrere Services zu koppeln. HTTP, PING, FTP, ECHO, NetBios.....

Ich prüfe übrigens indem ich mich mit IdTCPClient1.Connect verbinde, ob der Server online ist. Fehlermeldung - Firewall oder nicht online, keine Fehler - Server online.

maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Fr 03.01.03 00:37 
maxk hat folgendes geschrieben:
Google läßt ein ping z.B. nicht zu, obwohl es online ist.

Also bei mir schon:
Eingabeaufforderung hat folgendes geschrieben:
Ping google.de [216.239.39.100] mit 32 Bytes Daten:

Antwort von 216.239.39.100: Bytes=32 Zeit=142ms TTL=49
Antwort von 216.239.39.100: Bytes=32 Zeit=117ms TTL=49
Antwort von 216.239.39.100: Bytes=32 Zeit=117ms TTL=49
Antwort von 216.239.39.100: Bytes=32 Zeit=117ms TTL=49

Ping-Statistik für 216.239.39.100:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 117ms, Maximum = 142ms, Mittelwert = 123ms


Aber trotzdem hast du recht. An Firewalls hatte ich gar nicht gedacht. :shock: :wink:

_________________
If accidentally read, induce vomitting.
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Fr 03.01.03 09:59 
Gestern ging das ping nicht.
ausblenden Quelltext
1:
ping WWW.GMX.DE					

funzt bei mir auch net!

maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Burgpflanze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67

Windows2000 Prof. SP4
Delphi7 Enterprise
BeitragVerfasst: Fr 03.01.03 16:52 
Sieh dir mal unter www.auq.de/viewtopic.php?t=5310 meine erste Antwort an. Damit kannst du unter anderem auch prüfen,
ob ein bestimmter Server erreichbar ist.


Gruss, Burgpflanze