I want to write groovy script to get client ip adress but no information found in google.
some code I found is :
HttpServletRequest request = ServletActionContext.getRequest();
String ipAddress = request.getRemoteAddr();
import java.net.InetAddress;
localhost = InetAddress.getLocalHost();
log.info "My local machine name | IP address is : " + localhost
log.info "Only IP Address : " + localhost.getHostAddress()
this code is not I am looking for
How to get client ip address in groovy script or plugin in jira?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.