Made socket server domain independent