Why can't you use php to get IP?? XAMPP's ProFTPD is dead!

$_SERVER["REMOTE_ADDR"]
error_reporting (E_ERROR | E_WARNING | E_PARSE);
  if($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]){
   $ip = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
  }
  elseif($HTTP_SERVER_VARS["HTTP_CLIENT_IP"]){
   $ip = $HTTP_SERVER_VARS["HTTP_CLIENT_IP"];
  }
  elseif ($HTTP_SERVER_VARS["REMOTE_ADDR"]){
   $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
  }
  elseif (getenv("HTTP_X_FORWARDED_FOR")){
   $ip = getenv("HTTP_X_FORWARDED_FOR");
  }
  elseif (getenv("HTTP_CLIENT_IP")){
   $ip = getenv("HTTP_CLIENT_IP");
  }
  elseif (getenv("REMOTE_ADDR")){
   $ip = getenv("REMOTE_ADDR");
  }
  else{
   $ip = "Unknown";
  }

how strange! No matter which
I use, my IP will show :: 1
how did this happen?

I see xampp"s LOG write

Starting ProFTPD...
Exit code: 8
Stdout:
Checking syntax of configuration file
proftpd config test fails, aborting
Stderr:
xxx-2.local proftpd[1549]: warning: unable to determine IP address of "xxx-2.local"
xxx-2.local proftpd[1549]: error: no valid servers configured
xxx-2.local proftpd[1549]: Fatal: error processing configuration file "/Applications/XAMPP/xamppfiles/etc/proftpd.conf"

charge

clipboard.png

Mar.11,2021

questions about macos sierra

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30b7d-4d3d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30b7d-4d3d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?