简体   繁体   中英

unable connect to java app running on server (Heroku)

I deployed my app on Heroku. It is a simple app that will throw back the message sent from its client version (running on my PC) back to the client. My server app prints the IP address of the machine it's running on so I can connect to it from my client . I do get to see the IP address of Heroku machine when I deploy and run it. However, I am not able to connect to it from my client version using that IP address(Connection timed out) . I have allowed the port I am using in my firewalls. I don't understand what I am doing wrong .

Pls help me solve it.

If you need to see my code let me know ( the app works fine locally on different terminals so I don't think it has a problem).

Your Heroku dyno (an isolated server) is behind a router. You can't use the IP address to connect to it.

Instead, you the URL https://[appname].herokuapp.com where "[appname]" is the name of your app.

You can also run heroku open from the command line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM