But moved to the same computer can't access within the local area network (LAN) want to move the FTP server, somehow,
Another debugging, found in the local area net, no finished signal
Please teach
Void FtpManager: : get (const QString & amp; Path, const QString & amp; FileName)
{
QFileInfo info;
Info. SetFile (fileName);
M_file. SetFileName (fileName);
M_file. Open (QIODevice: : WriteOnly);
M_pUrl. SetPath (path);
QNetworkReply * pReply=m_manager. Get (QNetworkRequest (m_pUrl));
The connect (pReply, SIGNAL (finished ()), and this, SLOT (finished ()));
}
Void FtpManager: : finished ()
{
QNetworkReply * pReply=qobject_cast & lt; QNetworkReply * & gt; (sender ());
The switch (pReply - & gt; Error ()) {
Case QNetworkReply: : NoError: {
QByteArray byte=pReply - & gt; ReadAll ();
QDebug () & lt; <123;
QDebug () & lt;
M_file. Flush ();
}
break;
Default:
break;
}
M_file. Close ();
PReply - & gt; deleteLater();
}
CodePudding user response:
Network access to the outside and local area network can not access the basic can confirm is in connection out of the question,
Make sure problem:
1, whether the network connection normal
2, local area network (LAN) is the same domain
3, the port is occupied or limited
CodePudding user response:
Under the ping see bai,There is a small tool tcping can view port is opened
CodePudding user response:
Network no problem, the server is actually the NAS storage, storage can be used to direct access to the Windows resource management, can also use the FTP accessFor fear of the virus, do not have write permission to the workers to open the Windows resource management, is to write use FTP software to upload files,
To from already of FTP upload software, network, local area network (LAN) class, doubt is LAN speeds (1000 m) too fast, the QNetworkAccessManager convulsions,
At that time also found a way to treat the
CodePudding user response:
Close the firewall try open FTP that device