Step 1: ensure you are connected to same network. (wireless network or LAN, select private don’t use public connect)
Step 2: My flask apps running on on terminal vscode, or on git bash,:
Step 3: use ipconfig on the cmd to check ip address: then ping
Step 4: open your notepad as an admin then navigate to Step 4
**Step 5: **on windows go to the hosts file like below:
C:\Windows\System32\drivers\etc\hosts
Step 6: register the IP and name of link i.e (flaskapp.test) ensure there is space Between the IP and hostname address.
Hosts setup edit.
Step 7: add rules on your windows defender firewall advanced threats security
Create new rule > rule type > select port>check specific port (add your port: 5000 or 8000 depending on app) >allow the connection >check all profile> add name of app
You can ping from other pc to check it they are connected: using ipconfig from your cmd (command line)
PS: if comd doesnt work normally you can try **powershell **on your machine.
Then you can restart your browser and PC. To check effect.
On the other PC: just use the IP provided by your server on the Vscodes/bash/cmd/ with port number i.e: 192.168.0.199:8000 or 192.168.0.199:7000 (depends on frameworks used)
NB: all this setup are done on the PC the application is residing on, you can connect as many as possible device via the IP provided by your local server. _ enjoy!_
send mail to: hoghidan1@gmail.com for further information.
cc: https://www.twitter.com/ogidaniel1
https://www.linekdin.com/in/ogidaniel1
Top comments (0)