I would recommend resetting your device to factory default settings and trying again. As you said - it should be up and running out of the box, so going back to default settings should do the trick.
If after resetting you're still unable to browse the internet through wifi, please check if you have a connection when connected through LAN or just ping 8.8.8.8 address through CLI and see if ping is successful.
EB.