Issue with tracking in specific port in localhost


I am trying to track my website that is running on localhost:8082. I have given the link with the port number in website management, but Matomo is only tracking the page when opened using default port 80. Can someone help me with this please?
Matomo is being run using another local server on port 8090.

Issue Fixed.
8090 had to be changed to SSL port to track websites on SSL port 8082.