开发者

TCP communication on Windows Azure

Is it possible to create a service on Azure that handles a socket (ip:port) to get raw tcp data from clients and send some data back to them?

I am a little bit confused in this topic, somewhere I r开发者_Python百科ead it is possible, other pleces say it is impossible.

Note, my devices I want to communicate with can send data via tcp to a given IP address, it is not possible to set server as a DNS name in that devices. So, it is also an important question if Azure platform providers can provide also IP or just DNS names?


Tom, with any type of Windows Azure role, you can define tcp endpoints and assign a specific port to each endpoint. You can then start a ServiceHost (or anything, for that matter) that listens on that tcp endpoint. If you scale to multiple instances, each of your instances would listen on that endpoint for new connections, and the Windows Azure load balancer would take care of sending requests across your instances.

You can certainly connect via IP address instead of DNS name, but the IP address is subject to change if you delete and redeploy your app.

EDIT 12/14/2012 - Last October, there was announcement about improved in-place updates. You'll see that many types of changes may now be made to the deployment without the assigned IP address changing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜