Seriously, how easy was that?!
This is just a simple bit of code, deployed from a repository on GitHub and a master branch to show you how you can be quickly up and running.
Test data from PHP
Your app is running on PHP version: 7.3.33-10+ubuntu18.04.1+deb.sury.org+1
The app IP is: 10.0.56.219
The client IP is : 3.145.97.248
Temp dir available to your app is: /tmp
Code from above
<?php
$version = phpversion();
$ip = $_SERVER["SERVER_ADDR"];
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
$temp = sys_get_temp_dir();
?>