How to obtain the local IP address of the video remote access control system cloud networking terminal?

EasyNTS cloud networking is a complete set of intelligent cloud networking products. Its hardware can be configured on the terminal network site, and then the cloud networking platform can be deployed in the cloud to centrally manage all connected hardware cloud terminal devices to achieve access, control, and dynamics Networking, remote operation and maintenance, file transfer, remote command call and other functions.

NTS.png

In the previous article, I talked about how the server detects whether the port is open. In this article, let’s take a look at how the hardware devices in the EasyNTS cloud network obtain the local IP address.

Our compilation language is GO language. GO language obtains the server network card ip address. If docker is installed in the server, the docker ip address will be obtained, but the server ip address cannot be obtained. How to remove the ip address of this docker?

First get all the network card names of the server, then traverse the network card names, remove the network card name of docker0, and then get the IP address of the server network card.

189.png

Guess you like

Origin blog.csdn.net/EasyNTS/article/details/106276545