First thing you are doing wrong is trying to expose an unprotected openHAB to the Internet by punching a hole in your firewall using port forwarding. Please don’t do this.
Beyond that, you haven’t provided near enough information to answer your question and in all likelihood the problem is with your router configuration and not OH, unless you can’t access OH on your LAN either, in which case the port forward on your router is irrelevant.