That's why you are getting an IP address with 169. Those are common for LAN setups, and the only way around it is to not use a router.
Can you connect if you bypass the router? Perhaps the router is bad.
<edit> Or possibly the cable you are using is bad. </edit>