Giter Club home page Giter Club logo

Comments (7)

 avatar commented on July 29, 2024 1

Same problem on Windows...

from node-ip.

smiled0g avatar smiled0g commented on July 29, 2024

Confirm the problem on Windows 10 ...
Not only VM network, but pretty much everything has higher priority than Wifi adapter including VPN

from node-ip.

abrcdf1023 avatar abrcdf1023 commented on July 29, 2024

the same here

from node-ip.

pthieu avatar pthieu commented on July 29, 2024

same, running docker and it has a DockerNAT running. ip.address() and any combination of parameters will return the docker ipv4

from node-ip.

constgen avatar constgen commented on July 29, 2024

When you are in VPN you are only accessible using VPN internal address, but not a regular network interface address. Correct me if I am not right. So it is a question which behavior is correct.

from node-ip.

IAMtheIAM avatar IAMtheIAM commented on July 29, 2024

No solution in years? Hmm - docker takes priority over Ethernet

from node-ip.

HMarzban avatar HMarzban commented on July 29, 2024
/**
 *  @param {string} name **Optional** {'public'|'private'},
 *   Name or security of the network interface like "Docket" | "Wi-Fi",
 *   if neme set `undefined` return first address of the interface with `ipv4` or loopback address,
 *   if name set `public` return first public ip address,
 *   or if name set `private` return first public ip address.
 *  @param   {string} family **Optional** {ipv4|ipv6}  IP family of the address (defaults: ipv4).
 *  @returns {string} Returns the address for the network interface on the current system.
 */
ip.address() // my ip address
ip.address('Wi-Fi') // Obtain Wi-Fi IPV4 address
ip.address('vEthernet (DockerNAT)') // Obtain DocketNAt IPV4 address
ip.address('private') // Obtain private IPV4 address
ip.address('public','ipv6') // Obtain public IPV6 address

from node-ip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.