Can I determine the local IP address of a device using JavaScript?

1 day ago 1
ARTICLE AD BOX

I'm sorry for my English and for the possibly silly question, I only have a little knowledge of web development. I made a web application on a computer and wrapped it in an exe. On the computer, the server is running on node js runtime, and the client part is using the electron browser. Now, I need to open a second client on an Android device. Any single-page browser is suitable for me, but I don't want to enter the computer's IP every time. I want an automatic connection. it seemed to me that making a web application was easy for me, that is, just making a js that searches for a server on local network, and then opens my main web application

In summary, I want to define the subnet xxx.xxx.xxx.1-254 and then iterate over the addresses using js

I would appreciate any hint.

Read Entire Article