Please remember to use WikiFormatting.
I'm not certain whether the error message means that it cannot reach our rsync server or that it cannot resolve the hostname into an IP address.
Does it always fail? Has it ever worked? Does restarting the computer help?
Inability to connect to our rsync servers is usually caused by a problem with your network connection, such as an intentional blocking of rsync traffic by your corporate network administrator, or a feature or bug of your antivirus or network monitoring software, or something similar.
If you cannot resolve the problem, you will have to configure MacPorts to sync its ports using a method other than rsync (for example using git or using a tarball). selfupdate cannot use a method other than rsync, so you cannot use selfupdate and must install new versions of MacPorts when they are released by downloading and running the installer from our web site, or building from source manually, and must use sudo port sync
instead of sudo port selfupdate
to update your ports tree.