Question: how to connect to chromecast via wifi?
Answer: Make sure your Android device is connected to the same WiFi network as your Chromecast's.
Tap on a Chromecast-supported app. Make sure the app is up-to-date. ... 
Tap Cast.
Choose the device you're going to cast to, then tap Cast.