Search code examples
network-programmingluaclient-serverluasocket

How to get Client IP in Lua Sockets


I'm having trouble locating how I go about getting the ip address of each client as they connect to my server, using LuaSockets; Also: I apologise if this has been answered in another post, but I could find it; Link me if this is the case.

Cheers!


Solution

  • getpeername should work.