()
return retVal
Get remote/target IP address
Get remote/target IP address
Get remote / target IP address
def getRemoteIP():
    """
    Get remote/target IP address
    """

    retVal = None

    try:
        retVal = socket.gethostbyname(conf.hostname)
    except socket.gaierror:
        errMsg = "address resolution problem "
        errMsg += "occurred for hostname '%s'" % conf.hostname
        singleTimeLogMessage(errMsg, logging.ERROR)

    return retVal
def getRemoteIP ( ) : retVal = None try : retVal = socket . gethostbyname ( conf . hostname ) except socket . gaierror : errMsg = "address resolution problem " errMsg += "occurred for hostname '%s'" % conf . hostname singleTimeLogMessage ( errMsg , logging . ERROR ) return retVal