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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hotkeyguy
Posts: 171
Joined: 11 Oct 2014, 12:22

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

27 Mar 2017, 17:48

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
User avatar
uname
Posts: 23
Joined: 25 Oct 2013, 12:50

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

23 Nov 2020, 00:55

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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 94 guests