That should not prevent you from connecting to it, since the web interface listens on port 80.
If you did other changes that prevented access to the webui (for example you only have HTTPS enabled, which sits on port 8443), you can access the router through telnet (if you had that enabled). Otherwise, you will have to reset to factory defaults.