Any port in a storm is an expression that needs a little explanation. A port is where ships can come in from the sea. So if you imagine being on a ship in a big storm, you can see that finding a port would be good. But we use this expression when we choose something simply because it's necessary. We wouldn't choose it under normal circumstances, only in an emergency, or when no other option is available. This expression is sometimes used humorously. Take a look at the examples and see if you can pick out the the one that the speaker intends to be funny.
You: I really need to use a bathroom.
Your friend: Uh, there really isn't any decent place to stop along here.
You: What about that gas station we just passed?
Your friend: Didn't that look kind of dirty?
You: At this point, it's any port in a storm.
Bob: Did I just see you dancing with James?
Alison: Well, yes.
Bob: Wow.
Alison: I know. But my feeling right now is, any port in a storm!
You: I really need to use a bathroom.
Your friend: Uh, there really isn't any decent place to stop along here.
You: What about that gas station we just passed?
Your friend: Didn't that look kind of dirty?
You: At this point, it's any port in a storm.
Bob: Did I just see you dancing with James?
Alison: Well, yes.
Bob: Wow.
Alison: I know. But my feeling right now is, any port in a storm!