In my grails application, I have implemented the interface HttpSessionListener to listen for session creation as given below:
HttpSessionListener
c
you can access the RequestContextHolder and get the value
String ipAddr = ((ServletRequestAttributes)RequestContextHolder.currentRequestAttributes()) .getRequest().getRemoteAddr();