import javax.servlet.http.HttpServletRequest
fun function(request: HttpServletRequest) {
val ipAddress: String = request.remoteAddr // "127.0.0.1"
val userAgent: String = request.getHeader("user-agent") // "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
}
Recommended Posts