Most probably
PDFs "limited" javascript for designer doesn't allow access outside the PDF for security purposes.
Work Around:
Assuming your displaying your PDF on a website --> if you can, pass the IP address as a parameter to the PDF document.
Example:
http://localhost/yourPDF.pdf?ip=193.65.23.84In your PDF document javascript:
event.target.URL
// cut your URL parameters up to get what you need
then: fieldname.rawValue = ipExtractedFromURL
Associated methods that will be needed to help you out.
decodeURI(decodeURIComponent(%20) will result in a blank space