better flags supports -h mysql style
added some magic to lookup the router's ip