Some may say that
returns the "Local Port" and
returns the "remote Port" but what i find interesting yet ironically confusing is that how can be there two ports associated with the same Socket?
Code:
getLocalPort()
Code:
getPort()
Comment