You got it! The process is very similar on Windows. You'll still use your mobile hotspot to create a local network, and then connect all devices (including your Windows PC running the server) to that same hotspot.
Here's how to do it on Windows:
Connect your Windows PC to your Mobile Hotspot:
192.168.x.x or 10.x.x.x).Find your Windows PC's IP Address on the Hotspot Network:
Type the following command and press Enter:
ipconfigFind the line that says IPv4 Address. . . . . . . . . . . :. The number next to it is your Windows PC's local IP address on the hotspot network.
IPv4 Address. . . . . . . . . . . : 192.168.137.1, then 192.168.137.1 is your IP.Start your Node.js Server on the Windows PC:
attendance-web-app directory.npm start.Server running on http://localhost:3000 and Access the frontend at http://localhost:3000. Remember, for other devices, you'll use the actual IP.Connect Other Devices (e.g., another phone, another laptop) to the Same Mobile Hotspot:
Access the Application from Other Devices:
:3000.192.168.137.1, you would type:
http://192.168.137.1:3000This setup will restrict access to your attendance application only to devices connected to your specific mobile hotspot.
C:\Users\UNIQUE-MOBILE>ipconfigWindows IP ConfigurationUnknown adapter HotspotShield Network Adapter: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :Wireless LAN adapter Local Area Connection* 9: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :Wireless LAN adapter Local Area Connection* 10: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :Wireless LAN adapter Local Area Connection* 11: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 10.175.42.88 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.175.42.8C:\Users\UNIQUE-MOBILE>
Great! Thanks for providing the ipconfig output.
From your output, under the "Wireless LAN adapter Wi-Fi" section, you can see:
IPv4 Address. . . . . . . . . . . : 10.175.42.88
This is the IP address of your Windows PC on your current Wi-Fi network (which should be your mobile hotspot).
So, to access your attendance application from other devices connected to the same mobile hotspot, you should use this address:
http://10.175.42.88:3000
Make sure your Node.js server is running (npm start) on your Windows PC, and then try opening that URL in a browser on another device connected to your hotspot.
You can send messages while the preview loads