client_sockfd = accept(m_nLsnSocketHandle,
   (struct sockaddr *)&clientaddr, &client_len);

char client_ipaddr[16];
  
sprintf(client_ipaddr, "%s",inet_ntoa(clientaddr.sin_addr));

이렇게 하면 IP를 가져옴..
AND