undefinedfix
Sign in

How to get the current user's IP address from the front end of Vue

eemilk edited in Mon, 01 Aug 2022

How to get the current user's IP address from the front end of Vue

2 Replies
qcldg
commented on Mon, 01 Aug 2022

When users visit the front-end page, there should be a record in the access log on the server. Just let the back-end provide it

aleonjhon
commented on Mon, 01 Aug 2022

The unreliable information provided by the back end may be the proxy or the gateway address. If the front end obtains the user IP, it can use webrtc to obtain it

lock This question has been locked and the reply function has been disabled.