HTC have admitted there was a bug in the latest 2.3.3 update, I think it only affects certain routers though as I can connect fine to my home and work one, which is lucky, but like El Presidente said, assign yourself a static IP address and it will usually fix most issues. I'm not sure if they are going to release a small update to fix this issue or not.