10#include <QHostAddress>
12#include "kanoopcommon.h"
56 static QHostAddress
getLocalIP(
const QStringList& allowedInterfaces);
60 static int indexOfRegEx(
const QStringList ®exList,
const QString& ifName);
static QHostAddress getLocalIP()
Get the local machine's primary IPv4 address.
static bool tryParseAddressPort(const QString &addressString, QHostAddress &address, quint16 &port)
Parse a combined "address:port" string into a QHostAddress and port.
static QHostAddress resolveIPv4Address(const QString &hostName)
Resolve a hostname to its IPv4 address.
static QHostAddress getLocalIP(const QStringList &allowedInterfaces)
Get the local machine's IPv4 address, filtered by allowed interface names.
static bool tryParseAddressPort(const QString &addressString, QString &address, quint16 &port)
Parse a combined "address:port" string into its components.