How to hide port number in a url

1.7k Views Asked by At

I have run an application on a cloud server..i am accessing the url https://xx.xx.xx.xx:5004/double/request with a public Ip. Can it be possible to access the url https://xx.xx.xx.xx/double/request(Without port number)

3

There are 3 best solutions below

3
xrq0 On

Default port for HTTPS is 443. So you can just change your port to 443 and will be able to use https://xx.xx.xx.xx/double/request

More infos about port number : See this Question.

1
Oleg Cherednik On

What about using of services that short url: e.g. tiny.ly?

0
Super Kai - Kazuya Ito On

No, it's not possible to access the "https" url of "5004" port number without "5004".

So, to access the "https" url of your application without port number, you need to change "5004" port number of the "https" url of your application to "443" port number because "443" port number is default to "https".

In addition, "80" port number is default to "http".