Also changed the socks test code so that it binds to localhost, so that we don't get popups saying "would you like to allow socks.test to use the network"
added small delay to handle the possiblity of the server not being started yet