Be able to open socket by hostname