Display IP address in an Automator alert
You can set a variable containing your IPv4, then append the contents of the variable to the contents of the alert message:

set ipaddress to IPv4 address of (get system info)
tell app "Finder" to display alert "SFTP opened and your IP address is " &amp; ipaddress