What's new

Can't use wget on router to retrieve content on LAN?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

camedia

Occasional Visitor
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?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top