Modification added for permit connection to server