Setting the server port[solved]
-
wrote on 27 Feb 2013, 09:27 last edited by
hello every one..
My application needs the communication between server and client application ,
but every time when i launch server side program the port get changes.
can anybody tell how to set the port -
Hi,
If you are using QTcpServer, set the port when you call listen.
Hope it helps
-
wrote on 27 Feb 2013, 09:58 last edited by
Look at the "docs":http://qt-project.org/doc/qt-4.8/qtcpserver.html#listen.
-
wrote on 27 Feb 2013, 10:44 last edited by
And examples: "network":http://qt-project.org/doc/qt-5.0/qtnetwork/examples-network.html
-
wrote on 17 Mar 2013, 14:09 last edited by
problem solved.. thanks everyone :) :)
-
You're welcome :)
Please, update the thread title to solved so other people on the forum knows when searching
-
wrote on 20 Mar 2013, 03:03 last edited by
tcpServer->listen(QHostAddress::Any,portnumber);
-
wrote on 20 Mar 2013, 04:05 last edited by
[quote author="preeth" date="1363748622"]tcpServer->listen(QHostAddress::Any,portnumber);[/quote]
SGaist mean edit a title of first post and add to it "[solved]" :) -
wrote on 20 Mar 2013, 04:13 last edited by
edited :)