How to scan the QR code of the screen and obtain the ip of the mobile phone by react+nodejs

1. Go to a page and initiate a request to the server. The server generates the QR code
2. After the QR code of the scan screen of the phone, the front end can obtain the ip, of the phone and store the ip in the cookie or session of the browser for other pages to call the phone ip

.
Dec.28,2021
The

QR code is actually encoding a string.
when the server generates a QR code, don't you just write ip to the phone?


well, now I've got the ip, in the server's get method, but how can this ip be transferred to the browser's cookie for the front end to call

Menu