Added UDP socket as an input method