Accessing local GAE SDK server from another computer in the network

后端 未结 4 2198
一生所求
一生所求 2021-02-07 20:14

I have development server (from google appengine sdk), running on my Ubuntu computer. I can access my site by navigating to localhost:8080

I want to access that site fro

相关标签:
4条回答
  • 2021-02-07 20:24

    for an appengine specific solution see this: http://thecoderscanon.com/?p=115.

    Just add the Extra Flags: "-a 0.0.0.0"

    0 讨论(0)
  • 2021-02-07 20:26

    Make sure that you have the port 8080 open in Ubuntu's firewall settings.

    This is most likely a firewall issue on your linux box.

    0 讨论(0)
  • If you're using Python:

    sudo python2.5 dev_appserver.py -a 192.168.1.103 -p 8080 myapp/
    

    Edit:
    The development server also happens to listen to port 8080 by default, so that 2nd argument is redundant.

    0 讨论(0)
  • 2021-02-07 20:43

    The first check is indeed the ping check

    ping 192.168.1.103
    

    As said by Andre Holzner, I too feel the same possibility. You can easily check this by opening file /etc/hosts. sudo vi /etc/hosts.

    If you see following entries,

    127.0.0.1 localhost localhost.localdomain

    192.168.1.103

    then simply comment the 1st line and restart your web application.

    Check if now you can connect it through other machine.

    0 讨论(0)
提交回复
热议问题