I have connected my RasPi3 to a WiFi router. But there is no internet connection in Pi. I have also tried Ethernet connection with static ip but no internet. In both connections VNC Viewer works fine. Somedays ago internet also works well.