URLs for avatars & emoticons adding :80 to the end of the domain

What does SiteSetting.port return when you type it in the rails console?