use port in self url if available