Python has very good support for web development with its frameworks like Django, Flask, and others.
It can be used to build server-side web applications and can be integrated with any frontend.
Generally, developers use JavaScript in frontend and python for supporting server-side operations. Python is not used directly in browsers.
Python Server
Example – Access to the computer file system from mobile
You can access your file system by running a file server on your machine. Go to the desired directory that you want to access and run the following command –
# python version >= 3.X
python3 -m http.server
# If Python version >= 2.X and < 3.X
python -m SimpleHTTPServer
#default port: 8000
This starts a file server that can be accessed on the same network. To access your files on mobile, simply connect to the same network(wifi or use the phone's hotspot on a laptop). Now in your phone browser open –
<your-computer-ip>:port
Check your IP by running – ifconfig. Check your local IP (should start with
192.168.---.---
)
Suppose your IP is –
192.168.43.155
and you use the default port. Then, you should open –
Visitor:
Copyright (c) 2002-2026 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.