added a very simple input checking for ext_ip