The lot came out for the children of Joseph from the Jordan at Jericho, at the waters of Jericho on the east, even the wilderness, going up from Jericho through the hill-country to Bethel;
Despite the fact of Ephraim's border reaching the Mediterranean at a point coinciding with the northwest comer of Judah's territory, it appears that Dan also had a stake in the towns around Joppa  (Joshua 19:45-46), thus sharing that part of the seacoast with Ephraim.