The odd thing is that the phone is showing that wi-fi is on and connected when Miracast is on.
When I switch Miracast on, the Internet immediately stops working, then even if I switch Miracast off it won't work unless I disconnect from the wi-fi connection and connect again. Also if I disconnect from wi-fi when Miracast is on, the Miracast connection will be dropped, I thought Miracast didn't use local wi-fi connection ?
Any ideas why this is happening. I herd that sony xperia Z for instance can't use wi-fi when Miracast is on, but surely this is not the case with Nexus 5 ? Perhaps my TP-Link router somehow conflicts with Miracast ?