Get IP

I'm confusing how to get the IP from another application and insert it to my application.

I want to run like this step:

1. Get IP when client connect to remote server.
2. That IP result from application store on my application.
3. My application response it to URL to check update program.

Thanks in advance

Sorry for my bad english. :)
I don't think there is an easy way to actually get the IP from the application itself. You may want to look at GetTcpTable() from the windows API:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa366026%28v=vs.85%29.aspx
@ OP: This one is pretty straight forward unless I'm misunderstanding you. You'll want to call "getpeername()" after the connection is accepted: https://msdn.microsoft.com/en-us/library/windows/desktop/ms738533(v=vs.85).aspx
That application gives it to you in a pretty straight forward manner: http://wiki.sa-mp.com/wiki/Scripting_Basics . There's no need for hackish tom foolery.
Topic archived. No new replies allowed.