Connecting Arduino Mega directly to Ubuntu pc - Arduino Web Server not found

You have to reset the network settings on your laptop to DHCP.
If that doesn't work, please post a screenshot of your exact settings.