Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: PBox on existing LAN with RPi b

$
0
0
Hi Diego,
welcome to the forum.

The problem you are facing has nothing to do with the PirateBox configuration.

As you said, the PirateBox can be reached with

Language: PHP
http://<RPi IP>/content
The upload box can be reached via
Language: PHP
http://<RPi IP>:8080

The issue is, that your client - connected to your homenetwork, does not resolve the piratebox.lan name. Your router from the homenetwork, which gives away IP addresses, simply does not know about the piratebox. If you are lucky, you can access the box with
Language: PHP
http://alarmpi/content http://alarmpi:8080/content
The next iteration is to set the RPi's hostname to "piratebox". But that will only make the urls to the following list
Language: PHP
http://piratebox/content http://piratebox:8080/content
The upload box still need manual tweeking. From this point, you might edit the main.html file and change the URL of the iframe to "piratebox" only, that may make it.

Another option is to modify the computer you are sitting in front of to resolve piratebox.lan always to your piratebox-rpi IP in the homenetwork. (If linux, it is an entry in /etc/hosts)
Or add a manual entry "piratebox.lan" in your homenetwork router which points to the RPi's ip... but this is very unlikely possible.

I also recommend to revert your changes in hostap & dnsmasq settings, because it may break your home network :)

Hope that helps a bit,
best regards
Matthias

Viewing all articles
Browse latest Browse all 1863

Trending Articles