I am trying to write a script to turn on a WEMO smart plug when my AX88U fails over to the secondary WAN (a Netgear Nighthawk with Google Fi).
To determine if the primay WAN is in use, I use
nvram get wan1_primary
The WEMO device uses UPnP but rotates the ports from 49153 to 49156. To find out which port is in use, I use
wget -T 5 -O - http://192.168.50.134:49153/setup.xml
and change the port until I get a valid response. This used to work on an AC68P a few years ago, but it doesn't return anything on the AX88U. However, "wget google.com" returns the web content.
I have tried the same command from my Windows 11 Ubuntu shell and it correctly returned the setup.xml file. Does the AX88U prevent wget from retrieving stuff from a local device for security reasons?
To determine if the primay WAN is in use, I use
nvram get wan1_primary
The WEMO device uses UPnP but rotates the ports from 49153 to 49156. To find out which port is in use, I use
wget -T 5 -O - http://192.168.50.134:49153/setup.xml
and change the port until I get a valid response. This used to work on an AC68P a few years ago, but it doesn't return anything on the AX88U. However, "wget google.com" returns the web content.
I have tried the same command from my Windows 11 Ubuntu shell and it correctly returned the setup.xml file. Does the AX88U prevent wget from retrieving stuff from a local device for security reasons?