removing dns resolve
adding custom ipaddress to socket creation