Simple Java Server Application deployed on Heroku, can't listen to incoming connections on specified port

35 views Asked by At

I am creating a very simple Server using Java's Socket API, and have deployed it to Heroku. I've hardcoded the value of the port at which the server will listen for incoming connections. My app is deployed perfectly fine, and from the logs I can see it is also running properly. The problem is that, when I try to connect to that server, I receive a connection timeout error from the client code which I wrote, after waiting for a few seconds. It seems that the Server deployed on Heroku is not able to receive any incoming connections on the specified port. How could I make this work?

0

There are 0 answers