hostname configuration for remote access
Open Terminal and type or copy &amp; paste this bash one-liner:

 echo; MyExtIPAddrIs=`curl -s echoip.org`; host -4 $MyExtIPAddrIs|cut -c 22-100; hostname; echo


Your fully qualified domain name will appear after the words "domain name pointer" in the line that is output, and continues and includes, after the period at the far right, your mac's internal network address appearing on the next line.