The problem is not in the router, but your raspberry pi.

Your Pi, when working as a server and behind NAT (another router), you should set up port forward on the router so that your Pi can be accessed from the Internet.