Answer the question
In order to leave comments, you need to log in
How to connect to local server from another computer inside the same wifi network?
I want to connect from other devices to the local server. I'm a complete noob in this area and don't know what to look for.
1) Can I use a local server on flask (app.run()) or django runserver for this, or are they not enough and Apache / Nginx and so on are needed.
2) What do I need to do for this?
Windows 7, router ip is dynamic
Answer the question
In order to leave comments, you need to log in
1. Yes, you can. Nginx or apache are optional in this case.
2. You need to start the server so that it listens to the ip-address of the machine on the local network (usually 192.168.xx), or 0.0.0.0 (in general, all addresses). From another machine, go to the address of the first one, to the port on which the application was launched. For example, http://192.168.xx:8080. At the same time, on the first machine, the firewall (firewall) must allow incoming connections to this port, or must be disabled altogether. If the addresses are dynamic, and really change from time to time (usually the router still remembers which address is given to whom), then you need to either register the address statically on the first machine, not from the DHCP range, or on the router in the DHCP settings specify the address that is outstanding first car.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question