added config for port
added fallback for no server running
changed focusout to keyup