os.networkInterfaces() can only return the intranet ip
认证0级讲师
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 get it by checking this URL: http://httpbin.org/ip
You can access this interface to obtain the external network IP: http://www.clarencep.com/ip
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 get it by checking this URL:
http://httpbin.org/ip
You can access this interface to obtain the external network IP: http://www.clarencep.com/ip