I used both firefox and chrome (I had problems with chrome installation and it only worked with the ppa, if that helps).
On Firefox it shows "Unable to connect"
On Chrome it shows "This site can't be reached".
GitHub on the other hand, doesn't load the UI at all and I can only see the basic html, aka only the text and the blue links.
I am certain the internet connection is not to be blamed at all. The only other solution I found online was to turn off hardware acceleration, and that didn't help.
Any help would be much appreciated.
Thanks in advance!
EDIT: Solution was to follow this: Ubuntu 22.04 is connected to internet, but cannot open any website in the browser