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

support local and remote check.
Is it appropriate to raise error.TestXXXError in such a functional module?
I prefer to deal with this in test module.