It seems it lost the driver. Had to go to device manager, uninstall ethernet gadget driver, reinstall the driver, then go and configure the TCP/IP settings again, now it is working. Wonder if I have to do this every time?