What's the difference between the + and * with HttpListener [duplicate]
-
28-06-2021 - |
Question
I want to implement a HttpListener that listen to a specific port, but i don't understand why i should use:
-http://+:8080/
or
-http://*:8080/
or
-http://127.0.0.1:8080/ <-> http:// localhost:8080
thanks in advance
Solution
your localhost resolves to 127.0.0.1
and here is a good answer for what you are asking essentially :
https://*:8080: Receieve all https requests on port 8080 that are not already being handled by some other HTTPListener
https ://+:8080: Receive all https requests on port 8080 even if they're already handled by another HTTPListener
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow