I've solved the problem.
The wifi on the Avalon miner configuration tab has to be turned on for it to mine!
I thought just having the controller connected through lan cable would feed the Avalon miner an internet connection. I guess I thought I was connecting to the miner through the browser when it's actually the controller your connecting to.
Don't forget to enable wifi in the miner advanced config options!
yeah the rasp pi is connecting to the internet .
I use a eth cable