fix server socket for mac