ethernet doesn't work in other computer

  • I have an application in Qt, which use the ethernet version. My problem is the installation application used in my computer, the ethernet works fine, however, this communication doesn't work in other computer. Do I lack some dll? when i try the application in other computer all the fonction works fine a part from the ethernet fonction.
    Any one got idea why? see part of the fonction below

    bool NetworkOverspeed::isOSBCard(QString IP) {
        QByteArray datagram="P";
        QByteArray temp = tcpSocket->read(1);
            if( !temp[0].operator ==(1) ) {
                return 0;
        return 1;

  • Hi! What error do you get?

  • On Windows use the deployment tool to deploy your binaries

  • This post is deleted!

  • @Wieland
    I don't have any error, just when i try to detect the ip needed by using others computer i find nothing. I try to add the time of wait to be sure to get the information back, however I have nothing. But all works fine with my computer.

  • @VRonin
    Yes, that's exactly what I used. Even if i doesn't create a new install application just copy the whole folder which includs all the files necessary to execute the .exe, the file .exe can be launched. It works also fine with COM port, but If i try the ethernet part, i don't have the reply with other computer.

  • what do you pass as IP?

  • Moderators

    @VRonin As @Wieland said you should check whether you get any error. See here how to do this:

  • This post is deleted!

  • ... or maybe just turn off the firewall ;-)

  • Qt Champions 2017

    as @Wieland hinted, you MUST include error handling and output.
    Else its like try driving with eyes closed. :)

    IF using windows, the firewall can often block stuff so to test use:
    To Turn Off:
    NetSh Advfirewall set allprofiles state off
    To Turn On:
    NetSh Advfirewall set allrprofiles state on
    To check the status of Windows Firewall:
    Netsh Advfirewall show allprofiles

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.