?
Solved

Peer to Peer

Posted on 2003-03-19
6
Medium Priority
?
274 Views
Last Modified: 2010-04-04
I want a program to give me the state or information on the other computer with peer to peer connection
Please who can help me with that, do any one has a program?
Thanks
0
Comment
Question by:Nayel2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Author Comment

by:Nayel2
ID: 8165780
I mean a sniffer program...
0
 

Accepted Solution

by:
Imagine earned 300 total points
ID: 8165889
Do you mean if you can reach that computer?

You can do that with indy.

Use the IdIcmpClient1 to ping to that pc like this:

[code]

procedure TForm4.Timer1Timer(Sender: TObject);
begin
  application.ProcessMessages;
  IdIcmpClient1.OnReply := IdIcmpClient1Reply;
  IdIcmpClient1.ReceiveTimeout := 25;
  IdIcmpClient1.Host := ('192.168.0.1');
  IdIcmpClient1.Ping;
end;

procedure TForm4.IdIcmpClient1Reply(ASender: TComponent;
  const AReplyStatus: TReplyStatus);
begin
  if (aReplyStatus.BytesReceived > 0) then begin
    application.ProcessMessages;
    {let the user know that the computer is availeble}
  end else begin
    application.ProcessMessages;
    {let the user know that the computer is NOT availeble}
  end
end;

[/code]
0
 

Expert Comment

by:chco
ID: 8205139
If you need more specific addressing, simply make a connection to the computer you wish to access at the port you wish to access and capture the Exception if one occurs. If none occurs you have a connection, otherwise no connection was possible..
0
 

Expert Comment

by:CleanupPing
ID: 9316680
Nayel2:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question