Go Down

Topic: Ethernet Server and QTcpSocket (Read 873 times) previous topic - next topic



I'm trying to connect to my Arduino card via an C++/Qt application using QTcpSocket but I don't manage to connect.

Code: [Select]

void setup()

void loop()
   Client client = server.available();
      Serial.print("host connected");

Address and port for my Arduino are

So my Qt code is just:

Code: [Select]
QTcpSocket sock;

My application find well the host with signal "Host Found" but stay stucked after.
When I recall the same code, I have a message that notifies that it is already looking up or connecting/connected to the host.
But in my Arduino console, the message "host connected" never appears.

Am I doing something wrong ? Is it possible to use QTcpSocket to connect to the simple Ethernet Server ?

Thank you



It don't know what I've done but it seems to work well now.
I just tried on port 80 and it worked, and now, on port 10000 it work too...

Maybe the port 10000 was used and locked by an other application when I began.
Sorry for this question that was not a really one.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131