ranleng

绑定的内网 ip. 能从外网访问么?

  •  
  •   ranleng · Jun 3, 2018 · 3297 views
    This topic created in 2900 days ago, the information mentioned may be changed or developed.

    因为要测试下程序. 用 python + flask 随便的搭建了个 web 服务器.

    app.debug = True
    app.run(host='192.168.0.100')
    

    前面的内容基本上无关紧要.. 但是突然发现日志里有个外网 ip..

    Screen Shot 2018-06-03 at 09.12.34.png

    然后找了个查询 ip 的网站。 下面清一色的

    • Hacker!
    • trying to hack my ip
    • Hacker! Attempted to attack my network!!!

    但这么设置理论上应该没法访问吧...

    5 replies    2018-06-03 16:00:10 +08:00
    presoul
        1
    presoul  
       Jun 3, 2018 via Android   ❤️ 1
    nat 过了吧~
    CEBBCAT
        2
    CEBBCAT  
       Jun 3, 2018   ❤️ 1
    内网搭建的服务外王也是可以访问的,只要 NAT 设备做好对应就好,楼主看看是不是路由器开启了 DMZ

    或者,是不是路由器或内网设备被侵入了?抓个包?

    # 过一段时间可能要写一个系统的后端,大学生搞着玩的,要给别人提供 API,并将一些信息长久保存,因为还要在别的地方用到。想请教一些楼主有什么技术栈、书记或者教程站点可以推荐? C 学的还可以,Java 和 Python 勉勉强强,Linux 基础不错,Google 搜索能力自我感质量好,英语一般偏下
    ranleng
        3
    ranleng  
    OP
       Jun 3, 2018
    @presoul
    @CEBBCAT
    感谢.. 路由器里的 dmz 打开了.. 因为原来 192.168.0.100 是给别的设备用的. 忘记关掉了...
    ranleng
        4
    ranleng  
    OP
       Jun 3, 2018   ❤️ 1
    @CEBBCAT
    # Python + flask 就挺好使的.
    flask 三行就能启动.
    flaks 的本体也有中文文档. 再加个 flask_restful 扩展.
    api 服务器成功 get √
    CEBBCAT
        5
    CEBBCAT  
       Jun 3, 2018
    @ranleng #4

    Get √
    Thanks a lot.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5703 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.