Page 1 of 1

AHKSock/Socket.ahk (Winsock), getting IP address/name of the client

Posted: 27 Mar 2017, 17:48
by hotkeyguy
Hello,

running server, I'm looking for a direct way to get at least the IP address of the connected clients. With direct I mean via Winsock, not by messages.

Many thanks for any hints!


Greetings
hotkeyguy

Re: AHKSock/Socket.ahk (Winsock), getting IP address/name of the client

Posted: 23 Nov 2020, 00:55
by uname
Since the thread is properly named and it's on top of the google search results, here's the brief answer:

AHKsock_Listen() sends all the data required to the registered even handler function, 4th argument is the client IP address.