无法连接到侦听Azure VM上运行的特定端口的TCP程序 [英] Can't connect to a TCP program that listens on a specific port that is running on Azure VM

查看:124
本文介绍了无法连接到侦听Azure VM上运行的特定端口的TCP程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是部署服务器侦听器VM中的代码,并且需要使用服务器公共IP地址和具有TCP连接的端口号从客户端发送消息,我无法与服务器进行通信

I just deploy the server listener  code in VM and need to send message from client using the server public IP address and port number with TCP connection, i can't able to communicate with server

推荐答案

Hello

首先,请确保Windows防火墙允许流量,有关此方面的指南,请参见:

Firstly, ensure that the Windows Firewall is allowing the traffic, guides on this are here:

其次,确保您的网络安全组允许流量通过.

Secondly, ensure that your Network Security Group is allowing the traffic through.

第三,如果您使用的是Azure负载平衡器,应用程序网关或防火墙,请确保端口已正确NAT.

Third, if you are using an Azure load balancer, Application Gateway or firewall, then ensure that the port is NAT'd correctly.


这篇关于无法连接到侦听Azure VM上运行的特定端口的TCP程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆