You probably need to get a bit more familiarized with the concepts involved here.
HTTP requests are, by all standard definitions, sent to ports 80 (http) or 443 (https). Your 'App' (website or API) doesn't 'have' any ports, an http app hears on ports 80/443 and answers to those calls.
That may sound conflicting with express's default 3000 port, but it really isn't. The idea is that you really, really want to put your app behind some sort of reverse proxy (e.g. nginx). Simplifying things a lot, that basically redirects all requests to the 80/443 ports on your reverse proxy to the 3000 port on the server running your code. If you don't want your app to be called with the port number (e.g. http://www.example.com:3000/ping), then you need to use the reverse proxy. Technically just setting the port number would also work, but that wouldn't take care of both http and https and a lot of other things reverse proxies do efficiently for you.
Check out this other question for a bit more context
Hope that helps to clear things a little bit for you!
(P.S. highly suggest copy-pasting any code as text instead of an image, images are a lot harder to work with for anyone answering your question, and will discourage folks from answering the question)