bigdude
V2EX  ›  问与答

服务器端口访问不了,什么原因?

  •  
  •   bigdude · Sep 13, 2013 · 5608 views
    This topic created in 4810 days ago, the information mentioned may be changed or developed.
    服务器上
    python -m SimpleHTTPServer 3000
    Serving HTTP on 0.0.0.0 port 3000 ...

    在服务器上用curl访问
    http://localhost:3000
    http://服务器外网ip:3000

    都正常,但是用工作电脑的浏览器访问http://ip:3000 确无法访问,
    iptables --list
    也没有规则限制

    到底是怎么回事?
    9 replies  •  1970-01-01 08:00:00 +08:00
    xiluo
    xiluo
    Sep 13, 2013
    1
    防火墙?你用的是谁的服务器
    46fo
    46fo
    Sep 13, 2013
    2
    别用ie
    jiangpeng
    jiangpeng
    Sep 13, 2013
    3
    应该是服务器网段上的防火墙
    anheiyouxia
    anheiyouxia
    Sep 13, 2013
    4
    https://www.v2ex.com/t/82163
    你们是同一个人么?一个是node,一个是python?
    bigdude
    bigdude
    OP
    Sep 13, 2013
    5
    @xiluo 阿里云,开了云盾
    bigdude
    bigdude
    OP
    Sep 13, 2013
    6
    @anheiyouxia 不是,不过我用node搭一个app也访问不了
    anheiyouxia
    anheiyouxia
    Sep 13, 2013
    7
    @bigdude 你有没有试过直接关闭iptables?建议你试试关闭后是否可行。
    另外,之前我帮一个朋友搞过阿里云的主机,也遇到过端口问题,忘记是在控制面板打开还是找客服打开的了,如果关闭iptables还不行的话,不如问问客服。
    bigdude
    bigdude
    OP
    Sep 13, 2013
    8
    @xdeng 这跟ie有什么关系?
    kojp
    kojp
    Sep 13, 2013 via Android
    9
    墙

    telnet xx.oo.xx.oo 3000
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1711 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:57 · PVG 23:57 · LAX 07:57 · JFK 10:57
    ♥ Do have faith in what you're doing.