Solved

getting the ip header from an incoming packet

Posted on 2002-05-13
2
280 Views
Last Modified: 2010-04-04
how can i get the ip source and destination adresses
from an incoming tcp/ip packet
0
Comment
Question by:gaafer5
2 Comments
 
LVL 2

Accepted Solution

by:
PeterLarsen earned 100 total points
ID: 7006435
I guess this questions to be follow up from http://www.experts-exchange.com/delphi/Q.20299737.html, right ??

If you don't need the header for other information that the source ip, you could use RemoteAddress.

procedure TFormServer.ServerAccept(Sender: TObject;
  Socket: TCustomWinSocket);
var
 ClientIp : string;
begin
ClientIp:=Socket.RemoteAddress;
..
end;
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005756
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from PeterLarsen

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 185
delphi prevent click fast 2 189
FMX StringGrid1->Canvas->FillRect Problem 3 127
Performance of SQL statement 37 95
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now