how far away will hostile mobs spawn and move
Although even with that, The outer limit that hostile mobs will despawn is 128 blocks away thus a play must always be within 128 blocks for the mob to spawn at all. The 24 block rule can also apply to the distance at which the mob has to fall.