You can assign an IP address to the MAC and then access the IP that way: Microsoft Windows Windows systems require the dash '-' character between each digit of the MAC Address (Ethernet Address). Setting host to 0.0.0.0 tells the operating system to listen on all public IPs. IF you can connect to the device you know the MAC of on the same network (ideally a cross-over cable). By default, the value of host is set to 127.0.0.1 or localhost. The value of variable host controls what address the development server listens to. If you trust the other users on your network or have the debugger disabled, you can change this behavior. This is the default because in debugging mode a user of the application can execute arbitrary Python code on your computer. ![]() ![]() If you run the server you will notice that the server is only accessible from your own computer, not from any other in the network. ![]() The Flask development server uses localhost as the default value for hostname to provide better security. connected in your LAN, with their assigned IPs and MAC address. Flask ships with a development server, which has an interactive debugger and lazy loading.īut when you run an app using this server, you cannot access the app from other machines on the same network, for example, from your cell phone.Ĭan you configure the development server so the app can be accessed from other machines in the same network using the host machine’s IP? The Solution
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |