#1 Le 29/07/2015, à 18:12
- Nouri2012
./tcpserver can't start tcp server: "The address is not available"
Dear all
I use ubuntu and windows and I try to make client/server application between windows and linux:
ubuntu ==> the server
Windows ==> the client
the problem, when I compile the client with the below code:
//if (!rpcServer.listen(QHostAddress::LocalHost, 5555))
==> the server started without any proble
and when I change the adresse:
if (!rpcServer.listen(QHostAddress("192.168.1.10"), 5555))
I can compile without error but when I tried to start the server from ubuntu OS I got the below error
./tcpserver can't start tcp server: "The address is not available"
Could you please help me
Thanks in advance
Hors ligne
#2 Le 04/08/2015, à 14:30
- tiramiseb
Re : ./tcpserver can't start tcp server: "The address is not available"
Salut,
Tu copies-colles le même message d'un site anglophone à un site francophone ? C'est un peu du f...age de g...le, non ?
if (!rpcServer.listen(QHostAddress("192.168.1.10"), 5555))
[...]
./tcpserver can't start tcp server: "The address is not available"
Ta machine a bien l'adresse 192.168.1.10 ?
Sébastien Maccagnoni - https://www.maccagnoni.eu - https://www.domotego.com
Hors ligne