Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Making webpy framework accessible from outside the local network Post 302879728 by frad on Saturday 14th of December 2013 10:02:26 AM
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
 

2 More Discussions You Might Find Interesting

1. 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

2. 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
WSCONS(9)						   BSD Kernel Developer's Manual						 WSCONS(9)

NAME
wscons -- machine-independent console support DESCRIPTION
The wscons driver provides a machine-independent framework for workstation consoles. It consists of several cooperating modules: o display adapters (see wsdisplay(9)) o keyboards (see wskbd(9)) o pointers and mice (see wsmouse(9)) o input event multiplexor o font handling (see wsfont(9)) o terminal emulation (see wsdisplay(9)) The wscons framework replaces the old rcons workstation framework and the various machine-dependent console implementations. CODE REFERENCES
The wscons subsystem is implemented within the directory sys/dev/wscons. SEE ALSO
wscons(4), cons(9), driver(9), intro(9), wsdisplay(9), wsfont(9), wskbd(9), wsmouse(9) BSD
October 7, 2001 BSD
All times are GMT -4. The time now is 07:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy