Added allowed hosts to the socket