Human IK constraints

I use custom skeleton for character and want to implement IK for foots. I follow two bone IK tutorial but result is bad. When walk animation is playing one knee going back (like grasshopper). Must I setup some sort of IK constraints in UE or modeling software?