get IP and socket via user input