prepare for server socket