Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Reserve TCP port for server application?



  • Hi,
    I want to reserve a specific port on the server for my application so that no other application can claim that port.
    How do I do this in Qt in a platform independent manner?
    I am using TCP protocol and the corresponding Qt classes.



  • You mean you like to reserve the server port for an application while the application is not running?



  • Yes.
    I want to permanently reserve a port for my application while installing.
    I want to do this as my client applications are hard coded for server port number.
    I can then unreserve while uninstalling my application.
    Is it possible to do this?



  • AFAIK this is too specific and OS dependent for Qt.


Log in to reply