read proxy info from the right socket