TCPClient connect() problem

Try the code here in the link below, if the ip lookup returns 0.0.0.0 even with the correct DNS (your gateway address) in the info at the top then your router isn't set up properly for DNS.. and your in the same boat as me at the present time! ive tried setting the DNS manually in the router and still no luck. if i work it out ill let you know