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:
Qt Code:
  1. Socket->bind(QHostAddress("localhost"),2555);
  2.  
  3. Socket->connectToHost(QHostAddress::LocalHost,1458);
To copy to clipboard, switch view to plain text mode 


there is any method or approach to make the port for the client fix ??