The IK target was missing. When it shows a red symbol, that means Blender can't resolve the constraint. To make the IK work, you just had to add a bone to the end of the foot and then make that the foot's target. The new bone at the end is your ik handle/target and it shouldn't be parented to any bone in the ik chain. You correctly set the chain length to 4.
What might have happened is that you named one of the mesh objects "Body" so it changed the armature name to "Body.001". I renamed it "Armature" in the file.
I wasn't sure if you wanted the foot to stay flat of the ground or have the tip on the ground so I did it both ways. I suspect it was the tip you wanted and that is in the second file.
http://www.geocities.com/ajr650/TinyWal ... .blend.zip
http://www.geocities.com/ajr650/TinyWal ... .blend.zip
One thing to note is that because the IK chain you set up has similar degrees of freedom on some adjacent bones, this means that the ik solver gives them equal freedom. Specifically, the z-rotation of the ball joint and the z-rotation of the upper leg bone. When I put the foot in front of the robot, it made the leg rotate at an angle.
To correct this, I put a stiffness value of 0.5 on the ball-joint z-rotation to give the upper leg more influence and that fixed it (set it to 0 with the foot in front to see what I mean). I also set a stiffness on the foot to keep the tip on the floor more often.
You can adjust the stiffness values as you like to get the walk you want.
Concerning the ik handle, I always leave them unparented from the armature because it stops the feet sliding. It also means that if you move the root bone of the armature (also called "Body") then it means the feet stay planted on the ground.
edit: I just noticed the bone roll angles weren't consistent. It's better to select the bones and hit ctrl-n to get the axes facing the same way before setting joint limits. Turn on bone axis display to help. Here is an updated version with the roll angles set on the front right leg:
http://www.geocities.com/ajr650/TinyWal ... .blend.zip