Error: "Cannot find free port to use"

Everytime i try to connect to public server or localhost appears the message:
"Unable to connect to server. Cannot find free port to use."
How i fix this?
"Unable to connect to server. Cannot find free port to use."
How i fix this?