connectToHost(QHostAddress("реальный IP сервера"), 1234)
connectToHost(QHostAddress("192.168.1.100"), 1234)