The way to set up a portal without being in a stronghold would be to take the portal pieces, make a 4x3 rectangle, but leave an opening. Get in the middle of the shape, add the ender eyes, and then add the last portal piece while still inside, add the ender eye and your in