When the ark of the covenant of Yahweh came into the camp, all Israel shouted with a great shout, so that the earth rang again.
"The Philistines heard the noise of the shouting"  (1 Samuel 4:6).  This indicates the close proximity of Ebenezer and Aphek, the respective camps of Israel and their Philistine foes.