https://stackoverflow.com/questions/15963532
문제
Can I access the IP address of the client from request header?If yes,how?
해결책
Yes you can.
visitor_ip = request.env['REMOTE_ADDR']