The remote host is in $ENV{REMOTE_HOST}
In reply to Re^3: Systemd socket activated service in perl by tybalt89 in thread Systemd socket activated service in perl by chrestomanci