본문 바로가기

정리중인 카테고리/전공 기술

[Socket.IO] 클라이언트 아이피

sHeaders = socket.handshake.headers 

userIp = sHeaders['x-forwarded-for'] 

console.log(userIp ​)