Changed sockets to only close on 1 end. Changed IP discovery to first query DNS server then local adapters due to problem in lab"