I have several ‘blackbox’ that sends data to determinated IP and PORT, I can´t specify anything else (just IP and PORT)…
My server should be listening that PORT and catch information to send to MSMQ…
How can I set a WCF server to listening that PORT?
Thanks!
If you can control what’s pushing data to the IP address/port, then yes, you could use WCF. Unfortunately, without some sort of contract/binding to specify the means by which your ‘server’ and your ‘client’ communicate, WCF won’t help you much.
So if you can’t control the client code, you’ll need to ‘roll your own’ listener. As @Rob Stevenson-Leggett suggested: TcpListener
Edit:
Yep. WCF provides the MsmqIntegrationBinding for communicating on either end with an MSMQ.
Here’s a nice tutorial:
http://msdn.microsoft.com/en-us/library/ms789008.aspx