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 belowbool NetworkOverspeed::isOSBCard(QString IP) { QByteArray datagram="P"; tcpSocket->connectToHost(IP,2001,QIODevice::ReadWrite); tcpSocket->write(datagram); tcpSocket->waitForBytesWritten(500); tcpSocket->waitForReadyRead(1000); QByteArray temp = tcpSocket->read(1); if( !temp[0].operator ==(1) ) { tcpSocket->close(); return 0; } tcpSocket->close(); return 1; } -
Hi! What error do you get?
-
On Windows use the deployment tool to deploy your binaries
-
Hi! What error do you get?
-
On Windows use the deployment tool to deploy your binaries
@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. -
@VRonin As @Wieland said you should check whether you get any error. See here how to do this: http://doc.qt.io/qt-5/qabstractsocket.html#error
-
... or maybe just turn off the firewall ;-)
-
@VRonin As @Wieland said you should check whether you get any error. See here how to do this: http://doc.qt.io/qt-5/qabstractsocket.html#error
Hi
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