Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/07/2015, à 19: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, à 15: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 ?

Hors ligne