I don't know if this is your problem but when I first
tried to get Ubuntu on the net I had to force an IP address,
the address of my router, into the DNS tab of Network Settings.
Without the DNS assigned I could see other computers on the network
but I couldn't get online. It needed that domain name server to sort
out the "english" addresses to "dot" addresses.