bigdude
V2EX  ›  问与答

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

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


    telnet xx.oo.xx.oo 3000
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2694 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 10:45 · PVG 18:45 · LAX 03:45 · JFK 06:45
    ♥ Do have faith in what you're doing.