Regarding the solution to the domestic system UOS system Qt development Tcp server external connection cannot connect to the USO system

If the article is an original article, please indicate the source of the original article when reprinting it
The blog address of this article:https://hpzwl.blog.csdn .net/article/details/134254817

The complete collection of blog posts by Red Fatty (Red Imitation): Development technology collection (including Qt practical technology, Raspberry Pi, 3D, OpenCV, OpenGL, ffmpeg, OSG, microcontroller, software and hardware combination, etc.) is being continuously updated... (click the portal)

Development related to domestic Kirin system and Tongxin UOS system


question

  The uos virtual machine cannot connect to the external network. It also has an IP address and can be pinged. However, it cannot be connected to the local TCP server by external TCP, and the firewall cannot be seen. Record the problem solving process.


Resolution process

Computer pings virtual machine (uos)

  Insert image description here

Computer pings virtual machine (uos)

  Insert image description here

Virtual machine (uos) monitoring successful

  Insert image description here

View port: netstat -tln

  Insert image description here

Port 22 is OK, but port 21000 is not.

  Insert image description here
  Insert image description here

  Insert image description here
  Although this is the case, 21000 still cannot be connected. 22 can be connected, and then continue:
  Insert image description here

  I have never encountered this kind of problem before, and it is easy to use. Only uos encounters it, so I will improve the tcpServer module:
  Insert image description here

  Still not working, so this is not the problem. 22 can connect, but 21000 cannot. (I tested before and said that uos does not have a firewall installed by default. Considering that our version is a server uos version, it does have a firewall by default, but there is no firewall command tool). Then check the settings and see the firewall:

  Insert image description here
  Insert image description here
  This makes sense.


Solution

  - uso server version firewall problem, let go of the tcp protocol.
  Insert image description here
  Insert image description here
  That’s it.


If the article is an original article, please indicate the source of the original article when reprinting it
The blog address of this article:https://hpzwl.blog.csdn .net/article/details/134254817

Guess you like

Origin blog.csdn.net/qq21497936/article/details/134254817