silverlight - Can WCF TCP and HTTP endpoints have the same port? -


I'm interested in a WCF server that exposes both the HTTP and TCP interfaces. It will be used with the Silverlight client, so the thinking is that the HTTP interface will be for secure communication, while TCP will be used in the remaining time.

Is it possible to use these two interfaces in the same ports in your end points, such as net.tcp: // localhost: 9000 /?

No, it is not possible if you have the TCP port sharing service enabled, then you have the same TCP port But you can listen to many services. Windows HTTP listeners will also allow multiple services to share a common port (for example, a console app and IIS can both listen to port 80 at different URLs) but you can use several bindings on the same port can not do.

But I do not really see the benefit of doing this. I will leave the HTTP endpoint individually at port 80 and of course your TCP endpoint is limited to the upper port limit. I'm not sure which scenario you are trying to enable.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -