./tcpserver can't start tcp server: "The address is not available"

45 views
Skip to first unread message

Noureddine BOUBAKER

unread,
Jul 29, 2015, 1:10:11 PM7/29/15
to qjsonrpc-development
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

Matt Broadstone

unread,
Jul 29, 2015, 9:18:58 PM7/29/15
to Noureddine BOUBAKER, qjsonrpc-development
Do you actually have a route to that address? It should work if your current address is e.g. 192.168.1.10.

Matt
 

--
You received this message because you are subscribed to the Google Groups "qjsonrpc-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qjsonrpc-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Noureddine BOUBAKER

unread,
Jul 30, 2015, 10:12:14 AM7/30/15
to qjsonrpc-development, mbro...@gmail.com
Hello Matt, 
yes I can ping the 192.168.1.11 , I didn't use route , I used local network 
I configured 2 PCs on 192.168.1.10 and 192.168.1.11 
I can ping between server but I the server cant start 
Any idea please !!!and what de you think about the the syntax: 
rpcServer.listen(QHostAddress.QString("255.3.2.1"), 5555)

it's true???
Thanks in advance
Reply all
Reply to author
Forward
0 new messages