What do I do if port selfupdate doesn work or the rsync server refuses connections?
First try sudo port -d selfupdate to get all errors to display. If your connection to the rsync server fails you may get blocked by a firewall or other network control software. Some firewalls, such as PeerGuardian, block connections to certain corporate IP addresses as a way to prevent software from “phoning home” and violating your privacy. Our main rsync server is hosted by Apple Inc. Self updating requires an rsync connection to download files, but this will be blocked. In order to work around this, you need to temporarily disable or white-list rsync.macports.org. Another alternative is to use another mirror that is not hosted by Apple. The black list entry is all of Apple Inc’s subnet, which is 17.0.0.0/8. Disable this or create a white-list exception for rsync.macports.org. PeerGuardian will filter your network connections even if it is not actively running as an application. It is possible to disable PeerGuardian before running a selfupdate command by typing the following comman