os.networkInterfaces() can only return the intranet ip
認(rèn)證0級(jí)講師
Access the query IP and use regular parsing to return the public IP address
Use the versatile NPM to search for available packages! https://www.npmjs.com/search?...
You can access this interface to obtain the external network IP: http://www.clarencep.com/ip