Making webpy framework accessible from outside the local network


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Making webpy framework accessible from outside the local network
Prev   Next
# 1  
Old 12-14-2013
Making webpy framework accessible from outside the local network

I am using ubuntu 12.04.03. I have some basic experience with webpy and I had it working for my LAN just by following the tutorial. The framework needs to be able to be used from outside the local network. I have difficulty seeing how to make the framework accessible from outside the lan. I tried opening a specific port (with "# iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 8081 -j ACCEPT" then I check: "# netstat -ln | grep 8081 and I get: tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN" ) and use "python web_py_test.py MY_IP:8081" without success.

If I understand it at all, we can have a computer connected on a wifi with a non-static IP and there is a way to launch our webpy framework which can be accessible from the outside world. I am experimenting with the hello script:

Code:
import web

urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:
    def GET(self, name):
        if not name:
            name = 'World'
        return 'Hello, ' + name + '!'

if __name__ == "__main__":
    app.run()
~

I observe that nothing is declared in the script about IPs or ports.

Last edited by frad; 12-14-2013 at 11:04 AM.. Reason: browser crashed
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

SF4800 SC not accessible thru network

Hi All, I have my SC setup as attached below but I am having problem accessing the port thru network. sc0 was accessible only after i failed over the configuratios to sc1 (now then sc1 was not pingable :(). Just wondering is there anything wrong with my sc settings? Appreciate your advice. ... (4 Replies)
Discussion started by: honmin
4 Replies

2. IP Networking

ssh server is attachable from local network not from another network

hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies
Login or Register to Ask a Question