How to receive TCP/IP communication to Azure App Service?

Ruan Nagel 0 Reputation points
2025-01-13T10:27:38.8+00:00

Good day. Is it possible to receive raw TCP/IP communication from a remote device on an Azure App Service? I attempted to enable a custom TCP port on Azure App Service, but it did not work, TCP connection failed. Are there alternative methods to achieve this? If not, what serverless TCP/IP (with scaling) solutions on Azure would you recommend?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,509 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tasadduq Burney 8,861 Reputation points MVP
    2025-01-13T10:31:11.3533333+00:00

    Hello Ruan Nagel,

    Unfortunately, Azure App Service is not designed to handle raw TCP/IP communication directly. App Services primarily work over HTTP(S) and WebSockets, and they don't expose direct access to custom TCP ports.

    Alternatives and Recommendations:

    1. Azure Functions with TCP (via Azure Logic Apps or Azure Event Grid): While Azure Functions don't support direct TCP connections, you could set up a custom function to interact with TCP-based services via an intermediate resource like an Azure VM, or use Azure Logic Apps for service orchestration.

    Please Upvote and Accept the Answer if it helps!


    Thanks & Regards,
    Tasadduq Burney
    (Microsoft MVP & MCT)
    (Azure 15x)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.