ASP.Net MVC 5 应用与 TCP 服务器通信

ASP.Net MVC 5 app talking to TCP Server

我开发了一个托管在 Azure 上的 ASP.Net MVC 5 应用程序。它需要与我的一些客户使用的会计软件交换数据。这个会计软件提供了一个 TCP 服务器,它在我客户的局域网中的某个地方运行。

要进行通信,我需要 TCP 服务器的 IP 和端口,但 TCPServer 总是提供本地 IP,所以这是我的问题:

1) 像我这样的 Web 应用程序是否可以与托管在我的客户办公室(并且可能在防火墙后面运行)的 TCPServer 建立通信

2)如果我找到了TCP Server所在的真实IP,这个IP是否可以改变?

基本上,我正在尝试为我的客户找到一种优雅而简单的方法,以便在我们的网络应用程序中设置一次连接到他们的会计软件服务器。

This accounting software provides a TCP Server that runs somewhere in the LAN of my clients. To communicate, I need the IP and the Port of the TCP Server but the TCPServer always gives the local IP

  1. is it possible for a web app like mine establish a communication with a TCPServer hosted at my clients office (and probably runs behind firewalls)

    来自外部网络 (Azure)?不,除非您涉及 允许 某些外部访问(VPN、端口转发等)的网络问题。或者 "some API" 会表现得一样(又名 "gateway" instead 一些 direct 访问)。

    我将在 Azure VPN Service

  2. 上听取 Azure 专家的意见
  3. If I manage to find the real IP where the TCP Server lives, can this IP changes ?

    这个问题只能由您 client/IT 解决.....