![]() |
über indy bestimmten port anpingen?
aHoyHoy
ich würd gerne mit nem programm nen bestimmten port auf nem anderen pc anpingen wollte dazu den Idlcmp Client benutzen jetzt hab ich das soweit das ich ne ip anpingen kann aber wenn ich den port noch dazu schreibt stürzt mir das programm ab kann mir vllt jemand helfen wie ich das machen muss oder ne andere mögichkeit sagen? |
Re: über indy bestimmten port anpingen?
Hai any_key,
ein "Ping" erfolgt nicht über TCP. Darum wirst Du auch keinen TCP-Port anpingen können. |
Re: über indy bestimmten port anpingen?
aha
kannn ich das denn über nen anderen weg hinbekommen (es gibt ja bei cmd auch die möglichkeit nen bestimmten port anzupingen) |
Re: über indy bestimmten port anpingen?
Zitat:
Code:
Grüße
C:\Documents and Settings\demsmfu8\Desktop>ping
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] destination-list Options: -t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -a Resolve addresses to hostnames. -n count Number of echo requests to send. -l size Send buffer size. -f Set Don't Fragment flag in packet. -i TTL Time To Live. -v TOS Type Of Service. -r count Record route for count hops. -s count Timestamp for count hops. -j host-list Loose source route along host-list. -k host-list Strict source route along host-list. -w timeout Timeout in milliseconds to wait for each reply. C:\Documents and Settings\demsmfu8\Desktop> Klaus |
Re: über indy bestimmten port anpingen?
Code:
ping ip:port
|
Re: über indy bestimmten port anpingen?
Halte ich ebenfalls für ein Gerücht, dass man einen Port einstellen könnte. Ports gibt's nur bei TCP und UDP - ICMP verwendet keine Ports, daher kannst du auch keine Ports pingen (vgl. auch
![]() Das höchste der Gefühle ist das hier: Zitat:
Dust Signs |
Re: über indy bestimmten port anpingen?
sehe ich auc so wie Dust Signs
Grüße Klaus
Code:
C:\>ping [url]www.delphipraxis.net:80[/url]
Unknown host [url]www.delphipraxis.net:80[/url]. C:\>ping [url]www.delphipraxis.net[/url] :80 Bad parameter :80. C:\>ping [url]www.delphipraxis.net[/url] : 80 Bad parameter :. C:\>ping [url]www.delphipraxis.net[/url] : 80 |
Re: über indy bestimmten port anpingen?
Also ich kann hiermit ganz gut pingen :gruebel:
Delphi-Quellcode:
(wär das vllt was für die Codelib :stupid: )var FExists : Boolean; function TForm1.Pinged : Boolean; var i : integer; begin Result:=False; IdIcmpClient1.Host:=EIPAdresse.Text; IdIcmpClient1.Port:=StrToInt(EPort.Text); FExists:=True; for i:= 0 to 9 do begin IdIcmpClient1.Ping; Application.ProcessMessages; end; Result:=FExists; end; procedure TForm1.IdIcmpClient1Reply(ASender: TComponent; const AReplyStatus: TReplyStatus); begin FExists:=FExists and(AReplyStatus.ReplyStatusType = rsEcho); end; MfG :angel: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:40 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz