How to achieve an IP change in 3 sec with Python? Any working methods? or Is it possible to do an IP

18 Replies, 1266 Views

For a *local* solution, you could try restarting your router via script (if it has an API).

Some ISPs give dynamic IPs on reboot.

Check your router’s docs for HTTP API endpoints.

Example (if your router supports it):
```python
import requests
requests.post('http://routerlogin.net/reboot.cgi')
```
Kinda janky, but might work for ip change in 3 sec python if you’re desperate.

Messages In This Thread



Users browsing this thread: 1 Guest(s)