https://github.com/uk0/asus_pppoe_status
RT-BE88U 路由器获取公网IP(前提需要自己将宽带账号转换为公网用户)
https://github.com/uk0/asus_pppoe_status
Last synced: about 1 year ago
JSON representation
RT-BE88U 路由器获取公网IP(前提需要自己将宽带账号转换为公网用户)
- Host: GitHub
- URL: https://github.com/uk0/asus_pppoe_status
- Owner: uk0
- Created: 2025-03-19T06:43:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T06:45:20.000Z (about 1 year ago)
- Last Synced: 2025-04-02T05:54:34.220Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asus_pppoe_status
RT-BE88U 路由器获取公网IP(前提需要自己将宽带账号转换为公网用户)
### examples
```python
host = "10.88.51.8"
port = 10022
username = "admin"
password = "admin123"
WAN_IP = get_router_wan_ip(host, port, username, password)
if WAN_IP:
print(f"路由器 WAN IP: {WAN_IP}")
else:
print("无法获取路由器 WAN IP")
```