mohammad.meo
11th November 2014, 23:35
hello!
I try to connect to a server as tcp from client and bind(enter the port for the client), but after I connect to the host (used connecttoHost() method ) in the client
the port changed.
QT client:
Socket->bind(QHostAddress("localhost"),2555);
Socket->connectToHost(QHostAddress::LocalHost,1458);
there is any method or approach to make the port for the client fix ??
I try to connect to a server as tcp from client and bind(enter the port for the client), but after I connect to the host (used connecttoHost() method ) in the client
the port changed.
QT client:
Socket->bind(QHostAddress("localhost"),2555);
Socket->connectToHost(QHostAddress::LocalHost,1458);
there is any method or approach to make the port for the client fix ??