Solved

getting the ip header from an incoming packet

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

13 Experts available now in Live!

Get 1:1 Help Now