Geting IP on connect

How do I get the Ip off someone that connects (TCP) to a port that my program uses and getting IP when reciving data on a UDP port?
SwOoPeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Stuart_JohnsonCommented:
What component are you using for communicating with?

Stu.
0
X_KaliburCommented:
just keeping an eye on this one :)
0
keithcslCommented:
listening...
0
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

SwOoPeAuthor Commented:
I am using the ServerSocket and the NMUDP components.

If any one can answear tease questions ass well I will increase the points.

1) Why can´t I use ass many ServerSockets ass I want?

2) Why doesn´t my UDP port block accses from other applications like a trojan? After I run some thing else with UDP ports it seems like it comes in first han.
0
nicola65Commented:



procedure TForm1.ClientSocket1Connect(Sender: TObject;
  Socket: TCustomWinSocket);
begin
  showmessage(socket.RemoteHost);
    showmessage(socket.RemoteAddress);
end;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SwOoPeAuthor Commented:
Thanks for the help nicola65

Do u know why I get an error whwn from the server when the client disconnct?

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.