Solved

getting the ip header from an incoming packet

Posted on 2002-05-13
2
282 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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 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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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