how get port number from user on menu

hi,
i use UDP server and anything is OK
but how can get port number from user in start menu(UI) and set on udp server BP
i cant get text and cast to UDP BP
please help