Have a length of rope. Have a friend hold one end. You go through the portal, holding the other end. Now that you're through the portal, you tie the end that you brought with you and the end that your friend was holding. Ta-da!