MAC, IP 주소 알아내기 QT를 쓰면서 현재 컴퓨터의 MAC과 IP를 알아 내야 될 필요가 생겨서 Qt Assistant를 이용하여 찾아 보았다. 생각보다 간단하게 처리가 되었다. 먼저 소스를 보게 되면, #include #include #include int main(int argc, char *argv[]) { QApplication app(argc, argv); QString macAddress; QString ipAddress; QString Adddress; QNetworkInterface interface; QList macList = interface.allInterfaces(); QList ipList=interface.allAddresses(); for (int i = 0; i < macList.size(); i.. 더보기 이전 1 ··· 34 35 36 37 38 39 40 ··· 250 다음