IS there some reason why you wouldn't go to:Admin panel 0-> Manage -> Forms -> Ticket DetailsUnder Form Fields add:IP Address, Short Answer, Internal, geoip2And then have the script update that field in the database?This would handle the display of the var on the ticket view page for you.