V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
bigdude
V2EX  ›  问与答

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

  •  
  •   bigdude · 2013-09-13 10:05:49 +08:00 · 4639 次点击
    这是一个创建于 3885 天前的主题,其中的信息可能已经有所发展或是发生改变。
    服务器上
    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 条回复    1970-01-01 08:00:00 +08:00
    xiluo
        1
    xiluo  
       2013-09-13 10:08:32 +08:00
    防火墙?你用的是谁的服务器
    xdeng
        2
    xdeng  
       2013-09-13 10:09:07 +08:00
    别用ie
    jiangpeng
        3
    jiangpeng  
       2013-09-13 10:21:48 +08:00
    应该是服务器网段上的防火墙
    anheiyouxia
        4
    anheiyouxia  
       2013-09-13 10:35:06 +08:00
    https://www.v2ex.com/t/82163
    你们是同一个人么?一个是node,一个是python?
    bigdude
        5
    bigdude  
    OP
       2013-09-13 15:05:29 +08:00
    @xiluo 阿里云,开了云盾
    bigdude
        6
    bigdude  
    OP
       2013-09-13 15:20:28 +08:00
    @anheiyouxia 不是,不过我用node搭一个app也访问不了
    anheiyouxia
        7
    anheiyouxia  
       2013-09-13 16:26:11 +08:00
    @bigdude 你有没有试过直接关闭iptables?建议你试试关闭后是否可行。
    另外,之前我帮一个朋友搞过阿里云的主机,也遇到过端口问题,忘记是在控制面板打开还是找客服打开的了,如果关闭iptables还不行的话,不如问问客服。
    bigdude
        8
    bigdude  
    OP
       2013-09-13 17:31:44 +08:00
    @xdeng 这跟ie有什么关系?
    kojp
        9
    kojp  
       2013-09-13 20:33:12 +08:00 via Android


    telnet xx.oo.xx.oo 3000
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   812 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:52 · PVG 03:52 · LAX 12:52 · JFK 15:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.