Home > front end >  Vue how to obtain the local IP client
Vue how to obtain the local IP client

Time:05-04

You
Vue development for the client's local IP, on axios call interface program inside the request header
The backend interface interface processing, can get to visit the client's Ip, to generate log in, but from the Internet to find the
A lot of examples, we can not get the real Ip, some routine returns as ipv6 Ip, and some returns the Ip networks outside
What I want is a network IP

From the Internet to find information, must have a local IP method, but couldn't find it, or have a wrong,
Please get the client's local IP development experience of the bosses, provide the help, thank you,

  • Related