How to hide/remove the port number in the url

wacbm 21 Reputation points
2021-05-27T19:20:18.067+00:00

I have a url: http://localhost:8080, now I want to remove the port number 8080, how can I do it?

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,046 Reputation points Microsoft Vendor
    2021-05-28T02:42:53.287+00:00

    Hi @wacbm

    Default port for HTTP is 80, so you can just change your port to 80, about how to change port number you can use the iis url rewrite modules.

    You should install the URL Rewrite and the ARR (Application Request Routing) modules for IIS. Here are two links on how these can work together to create a reverse proxy to do what you want:


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful