Bad address means that your router cannot resolve our server's name (www.hotspotsystem.com).

Be sure that the router is connected to the internet properly. You can also check the DNS settings of the router before you run the setup script.

You can try to log in to the router via console/terminal and try

root@OpenWrt:~# ping www.cnn.com
ping: bad address 'www.cnn.com'

This means the router couldn't resolve the name. You can try an IP address:

root@OpenWrt:~# ping 151.101.1.67
PING 151.101.1.67 (151.101.1.67): 56 data bytes
ping: sendto: Network is unreachable

This means there is no network in the router. You should have an internet connection in the router to make the script work. (Connect the router's WAN port to the internet)

If it could ping the IP address, then it means the problem is only the DNS setting, you should enter a working DNS server, for example google's 8.8.8.8

Did this answer your question?