search

Home  >  Q&A  >  body text

javascript - nodejs how to get the ip of the external network

os.networkInterfaces() can only return the intranet ip

PHP中文网PHP中文网2759 days ago1163

reply all(4)I'll reply

  • 扔个三星炸死你

    扔个三星炸死你2017-07-03 11:44:38

    Access the query IP and use regular parsing to return the public IP address

    reply
    0
  • 滿天的星座

    滿天的星座2017-07-03 11:44:38

    Use the versatile NPM to search for available packages! https://www.npmjs.com/search?...

    reply
    0
  • 迷茫

    迷茫2017-07-03 11:44:38

    You can get it by checking this URL:
    http://httpbin.org/ip

    reply
    0
  • PHP中文网

    PHP中文网2017-07-03 11:44:38

    You can access this interface to obtain the external network IP: http://www.clarencep.com/ip

    reply
    0
  • Cancelreply