I want to code a UDP server and I want to use my IP address as the address of the server without putting the code the address in raw.
myIP="192.168.1.38";
is there any way to get the IP of the host machine ?
i know that QHostAddress::LocalHost is equivalent to 127.0.0.1. is there any method that works the same to get my IP ?