In Castaway 2, obtaining iron is part of the game's resource-gathering and crafting progression. You'll typically need to reach the right area and use the appropriate tools to mine or collect it.
If you're not sure where to look, a walkthrough for the game can point you to the exact location and requirements, saving you a lot of wandering.