Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Making webpy framework accessible from outside the local network Post 302879784 by frad on Sunday 15th of December 2013 10:42:13 AM
Old 12-15-2013
The result of
Code:
ifconfig

is -I added some stars-:

Quote:
eth0 Link encap:Ethernet HWaddr dc:0e:a1:ba:82:1c
inet addr:192.168.178.** Bcast:192.168.178.*** Mask:255.255.255.0
inet6 addr: fe80::de0e:a1ff:feba:821c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17451 errors:0 dropped:0 overruns:0 frame:0
TX packets:12786 errors:0 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:10460410 (10.4 MB) TX bytes:2232289 (2.2 MB)
Interrupt:44

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:73323 errors:0 dropped:0 overruns:0 frame:0
TX packets:73323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7336237 (7.3 MB) TX bytes:7336237 (7.3 MB)

wlan0 Link encap:Ethernet HWaddr 44:6d:57:a1:e2:7b
inet addr:192.168.178.** Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::466d:57ff:fea1:e27b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1811250 errors:0 dropped:0 overruns:0 frame:0
TX packets:1227810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1894687899 (1.8 GB) TX bytes:172295424 (172.2 MB)
I confirm that
Code:
python web_py_test.py IP:8080

allows the framework to be accessed from any computer connected to my modem/router

Code:
python web_py_test.py 8081

results in that the framework is accessible only from the computer that launched it

Code:
python web_py_test.py

does not work at all:

Code:
http://0.0.0.0:8080/
Traceback (most recent call last):
  File "web_py_test.py", line 15, in <module>
    app.run()
  File "/home/frad/.../application.py", line 313, in run
    return wsgi.runwsgi(self.wsgifunc(*middleware))
  File "/home/.../wsgi.py", line 54, in runwsgi
    return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
  File "/home/.../httpserver.py", line 157, in runsimple
    server.start()
  File "/home/.../wsgiserver/__init__.py", line 1753, in start
    raise socket.error(msg)
socket.error: No socket could be created

---------- Post updated at 10:23 AM ---------- Previous update was at 10:15 AM ----------

Also:

Code:
sudo iptables -t nat -L
 
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

---------- Post updated at 10:42 AM ---------- Previous update was at 10:23 AM ----------

In addition the result from the web site whatismyip

is a completely different ip

Last edited by frad; 12-15-2013 at 11:43 AM.. Reason: typo
 

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
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy