a lib to valid the ip:port connection