All of this in on Windows 11 without Windows Defender Firewall:
In order to debug an API, I launch an instance of it in Visual Studio which opens a browser to http://localhost:#### where the #### is some port number. That allows me to use Postman on the same computer to make API calls.
What I need to do is use a mobile app to make the same calls, so I replace the server name in my app with the local IP address of my computer. When the mobile device calls the API, it knows enough to ask permission to do things on my local network, but I wind up getting a 400 error in response to the API call.
Basically, in Postman I use http://localhost:12345/SomeEndpoint which works, but when I change localhost to my computer's IP address, it doesn't - even in Postman on the same computer. (that port values is made up for this example)
I've made attempts at using IIS with Application Request Routing and URL Rewrite, but I'm a novice at best when it comes to those things. Currently, I can use either the ipaddress or localhost to get the default website that is installed with IIS, but when I add the port number, it gets "HTTP Error 400. The request hostname is invalid."
So, what I'm trying to figure out is how to make the computer redirect incoming IPAddress:port to localhost:port.