Capture IP Address In Hidden Field

Is it possible to capture the IP address in a hidden field during form submission? I looked through the forums/documentation but haven’t found anything.