Hi can the same port be used to listen to two different protocol request.. i.e.. can I use the same port for both http and https requests??
You can only do this if all of the protocols require the client to send data first. You can write a pseudo-server to read data and detect the protocol in use and redirect it to the appropriate local server. With protocols like ssh, this cannot be done since the server sends data first and the client responds to it.
You could, but you'd have to write your own listener on that port that could handle both situations. There are no web servers I know of that can do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With