How to add items in dropdown bar via text-input?

Based on the screenshots above the IP address from to is pre-defined in the nodes inside. But now I want it in a way where I enter a new IP address via text input and once I hit enter it will update the dropdown bar with the new IP address added like the image shows

If you look at the Help tab when clicking on the ui-dropdown node, you wil see how you can send multiple values. You need to dynamically build the original choices, then when the text input is sent, rebuild the choices with the additional option (IP in your case)