I am trying to develop an iPhone p2p application.
I am going to use a centralized server and users will update their IP addresses to the server. I want to set up a connection between users, regardless of what network users belong to.
I was going to use a fixed port number and someone pointed out that a router, if the user connected via Wi-Fi, might block the port number I manually set up.
How do I fix this problem?
You can't fix this problem. The administrator of a "router" is free to block arbitrary port numbers.