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

support local and remote check.
Should we specify it by patterns "LISTEN" and 'tcp/udp'?
It will be much reliable for checking.