Function errorOpeningSocket is a common error