无法通过端口8888访问Azure VM [英] can not access Azure VM thru port 8888

查看:89
本文介绍了无法通过端口8888访问Azure VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了Azure ubuntu VM,创建了网络安全组,添加了端口80和8888规则.防火墙处于非活动状态.将nsg关联到VM的子网.即使没有允许8080的规则,也无法远程连接到端口8888,但可以将telnet远程连接到端口80正常,而端口8080也可以.我尝试并删除了端口80入站规则,但仍然可以访问端口80.

I set up an Azure ubuntu VM, created the network security group, added port 80 and 8888 rules. firewall is inactive. associated nsg to the subnet of the VM. Not able to remote connect to port 8888, but telnet to port 80 ok, and port 8080 also ok, even though there is no rule allowing 8080. I experimented and removed port 80 inbound rule, but still can access port 80.

netstat -ant |grep 8888显示一个进程正在监听tcp 0 0 127.0.0.1:8888 0.0.0.0:*监听

netstat -ant | grep 8888 shows one process is listening tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN

似乎访问不遵循我的入站规则,而是遵循某些默认值.它可以做什么?

It just appears that the access is not following my inbound rules but obeying some default. What can it be doing?

推荐答案

正如您所说,您的服务正在监听 127.0.0.1 ,该服务只能在VM内部访问.

As you said, your service is listening on 127.0.0.1, the service is only accessed inside VM.

您应将服务设置为在 0.0.0.0 或VM的专用IP上监听.

You should set your service listen on 0.0.0.0 or VM's private IP.

这篇关于无法通过端口8888访问Azure VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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