virttest.utils_net: check TCP/IP listening port by service

support local and remote check.