HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.33k stars 2.27k forks source link

Upnp router configuration #223

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, I tried ZeroNet on a computer, and it opened Upnp ports on the connected router Then I tried ZeroNet on another computer behind the same router and it was not able to open ports for this other IP address, so I was not able to distribute the network, so I removed the old UPnP configuration on my router, and I reloaded ZeroNet, and it opened the ports of the new IP address.

;)

Hope it helps to improve the software

Error logs :

[mardi 8 décembre 2015, 12:58:47 (UTC+0100)] ZeroNet is starting

nikolay commented 8 years ago

:+1: Same issue. This thing doesn't work on Vagrant, now doesn't work on Docker either.

HelloZeroNet commented 8 years ago

It's hard to make it work without direct hardware access, but you are also fine without opened port.

bryque commented 8 years ago

Same issue.

obustosm commented 8 years ago

Same Thing Here... My partner at my side using Windows 10 connected with no advices. So i, opened website shown and loaded successfully. Here's the terminal description:

`

HelloZeroNet commented 8 years ago

You are safe to ignore it, opened port is not required to use zeronet

xbee commented 7 years ago

Could you explained it's theory?

xbee commented 7 years ago

I have the same things. But when I run UpnpPunch.py , I found it can addportmapping ok.

- Starting ZeroNet...
[19:29:52] - OpenSSL loaded, version: 0009081DF
[19:29:52] - Version: 0.3.7 r1287, Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)], Gevent: 1.1.1
[19:29:52] - Creating FileServer....
[19:29:52] TorManager Tor controller connect error: error: [Errno 61] Connection refused in TorManager.py line 154 > _socket2.py line 228
[19:29:52] - Creating UiServer....
[19:29:59] - Removing old SSL certs...
[19:29:59] - Starting servers....
[19:29:59] Ui.UiServer --------------------------------------
[19:29:59] Ui.UiServer Web interface: http://127.0.0.1:43110/
[19:29:59] Ui.UiServer --------------------------------------
[19:29:59] - Opening browser: default_browser...
[19:30:01] FileServer Checking port 15441 using portchecker.co...
[19:30:03] FileServer [BAD :(] Port closed: Port 15441 is closed.
[19:30:03] FileServer Trying to open port using UpnpPunch...
[19:30:04] FileServer Checking port 15441 using portchecker.co...
[19:30:06] FileServer [BAD :(] Port closed: Port 15441 is closed.
[19:30:06] FileServer Checking port 15441 using canyouseeme.org...
[19:30:15] FileServer [BAD :(] Port closed: Error: I could not see your service on 111.193.200.234 on port (15441) Reason: Connection timed out
[19:30:15] FileServer Upnp mapping failed :( Please forward port 15441 on your router to your ipaddress
[19:30:47] Site:1MaiL5..Ju27 data/users/1NS9qMabhcMJpQqeqeFy14j3z9DkqNCWzS/content.json: Site too large 10486472 > 10485760, aborting task...

I think the open_port is working, But why it tell me upnp mapping failed?

> python UpnpPunch.py
DEBUG:root:Found local ips: ['192.168.xx.xx']
DEBUG:root:Trying using local ip: 192.168.xx.xx
DEBUG:root:Sending UPnP request to 192.168.xx.1:37215...
DEBUG:root:Sending UPnP request to 192.168.xx.1:37215...
True
Done in 0.22724199295
HelloZeroNet commented 7 years ago

Probably an another router/isp is blocking your port.

ghost commented 7 years ago

Have you managed to solve the problem @ghost ?