I am new to servers and networking so pardon my ignorance.
I have a Heroku application running a NodeJS server. I am using console.log()
to output the port its using to the console. But when i use the port to try to perform a GET request from my browser it keep loading forever. My request is something this:
https://example.herokuapp.com:28222/getHighest
When i remove the port number, it works perfectly:
https://example.herokuapp.com/getHighest
I am ultimately trying to perform GET and POST request from a C application. The HTTP library i am using seemingly requires a port for a connection. I am using this library: GitHub. It works perfectly when i run it locally with localhost:8080/getHighest
but not when i use my heroku app.
As suggested by @tadman using the default https port 443
solved the issue.