aaaagile
Posts: 7
Joined: Fri Apr 15, 2016 2:06 pm

2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 10:55 am

I have 2 pis (pi2 & pi3)
Pi 3 has my web site on a fixed ip (16mb with external drive & part Operating system) containing Photo Album, Music and Home Videos
Pi 2 has Kodi with external drive containing my Videos copied from my DVD's

I would like to access my "kodi"when away from home , i.e via the Internet.without interrupting my pi 3 (family access my photo album)

So far no luck following all help on various (googled) sites.
All help gratefully received.

ta

djb

User avatar
leol
Posts: 147
Joined: Fri Jan 13, 2012 4:27 pm
Location: Haute-Vienne, France

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 12:10 pm

Much more information needed.
Are the two Pis behind a firewall / router?
What do you mean by "Access" the Kodi device? Stream the media files stored locally on it over the Internet? Remote control it's playback to an attached screen? Or What?

User avatar
r3d4
Posts: 967
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 1:29 pm

aaaagile wrote: So far no luck following all help on various (googled) sites.
can haz th un-'help'-full url(s) :?: plz :!:

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 1:37 pm

Without knowing exactly how you wish to connect it is difficult to help.

Are we to assume both Pi's are on the same local network.
How are the Pi's connected to your network?
Are we to assume that both Pi's can reach the internet.
Are we to assume that you want ssh access to the Pi over the internet.
Are we to assume that you want some other service to be accessible on that Pi over the internet.

If the raspberry Pi's do not have public IP addresses then you will have to do some port forwarding on your router.

So lets take a step back and please answer some of the questions so we can provide help.
You can run, but you will only die tired.

aaaagile
Posts: 7
Joined: Fri Apr 15, 2016 2:06 pm

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 2:19 pm

Step back ...
Are we to assume both Pi's are on the same local network. ..............
Both pis are connected to a plusnet modem

How are the Pi's connected to your network? .........
Hard wired

Are we to assume that both Pi's can reach the internet. ...
Yes used "addons"to check the kodi pi
Are we to assume that you want ssh access to the Pi over the internet. ...
Yes would also like to use winscp from windows 10 (putty works as dose remote kodi on a nexus 5x)

Are we to assume that you want some other service to be accessible on that Pi over the internet.
I am happy that my pi 3 allows access to my photo album
Just would like access to my kodi video files over the internet also

If the raspberry Pi's do not have public IP addresses then you will have to do some port forwarding on your router.
Ah........ Port forwarding with two pi's ????


So lets take a step back and please answer some of the questions so we can provide help.

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 3:09 pm

Thanks for the added info, now to see if I can provide help.

If you want a machine to be reachable from the outside network to an inside network you will need to determine 1 thing first.

What service or application do you wish to access remotely.

Examples.

1. Do you want to access a webserver?
2. Do you want to access it from FTP.
3. Do you want to access it from SSH.
4. Do you want to access it from some other application.

If all you want to do is access the machine via SSH (doing so opens up all types of abilities) this is a simple task and will require some port forwarding on your router. Accessing the Pi from SSH does allow you the same type of access that you would have from the CLI local.

Once you decide what type of connectivity you need I will be able to step you through the process.
You can run, but you will only die tired.

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: 2 pis (apologies to Victoria Wood 2 soups)

Thu Jun 23, 2016 3:14 pm

Lets do this as an example as it will be easy to test and implement.

First we need to get your internal ip address.

From the Raspberry pi that you want to access remotely. Please type the following at the CLI.
ifconfig

SSH works over port 22, I will assume that you have not changed what port SSH is listening on.
What you now need to do is go to your routers configuration screen. I think this is the correct link for your device. http://www.heatgenius.co.uk/confluence/ ... et+Routers

So we know what port needs to be forwarded. ifconfig on the Pi that you want to access external will give us the IP address that we want that port forwarded to.

To test, find out what your external IP address is to do this, google whats my IP address. Once you find your external IP address you can test ssh by sshing to that external address. Assuming that everything is setup correctly you should get a logon prompt.
You can run, but you will only die tired.

aaaagile
Posts: 7
Joined: Fri Apr 15, 2016 2:06 pm

Re: 2 pis (apologies to Victoria Wood 2 soups)

Fri Jun 24, 2016 1:15 pm

HI
Thanks for he response.

My pi 3 is accessible via the internet (remotely) Port forwarding set ok.

My problem is I have introduced a Pi2 with kodi installed.Its this Pi that I would like to access simultaneously via the internet

ta

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: 2 pis (apologies to Victoria Wood 2 soups)

Fri Jun 24, 2016 1:28 pm

aaaagile wrote:HI
Thanks for he response.

My pi 3 is accessible via the internet (remotely) Port forwarding set ok.

My problem is I have introduced a Pi2 with kodi installed.Its this Pi that I would like to access simultaneously via the internet

ta
Port forwarding is your friend here as well. Lets assume the following.

P1.local needs to be accessed over the internet on port 80 (Web server), this Pi's local address is 192.168.1.3
P2.local needs to be accessed over the internet on port 22 (SSH), this Pi's local address is 192.168.1.4

You would on your router, port forward port 80 to 192.168.1.3 this would direct all calls to port 80 to the P1.local.
You would on your router, port forward port 22 to 192.168.1.4 this would direct all calls to port 22 to the P2.local.

Now lets take a more complex issue. Lets assume that you want both Pi's accessible from the internet on port 22 (SSH).

Obviously, we can not port forward port 22 to 2 different machines. In this case, one of the machines would need the SSH reconfigured to use a different port then port 22. viewtopic.php?f=36&t=57697

NOTE: Please remember, once you have ssh'ed into one pi, you should then be able to SSH to the other pis that are on the network.
You can run, but you will only die tired.

aaaagile
Posts: 7
Joined: Fri Apr 15, 2016 2:06 pm

Re: 2 pis (apologies to Victoria Wood 2 soups)

Fri Jun 24, 2016 1:49 pm

Thanks
Ill give it a try and let you know what happens

Romonga
Posts: 123
Joined: Mon May 09, 2016 7:09 pm
Location: Montgomery Il

Re: 2 pis (apologies to Victoria Wood 2 soups)

Fri Jun 24, 2016 3:55 pm

aaaagile wrote:Thanks
Ill give it a try and let you know what happens

:) I hope it helped.
You can run, but you will only die tired.

aaaagile
Posts: 7
Joined: Fri Apr 15, 2016 2:06 pm

Re: 2 pis (apologies to Victoria Wood 2 soups)

Tue Jul 05, 2016 12:17 pm

I have found a solution....... I have upgraded to a Pi 3 and installed Kodi. So I can now play everything I need via the internet from any location. Speed is a problem for movies ( best to download them to local device) Music plays well, photo album is ok too

Thank you for Your Comments

Now, how to figure how to close this post
:D

User avatar
davidcoton
Posts: 3949
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: 2 pis (apologies to Victoria Wood 2 soups)

Tue Jul 05, 2016 1:56 pm

aaaagile wrote:I have found a solution......Now, how to figure how to close this post
:D
Posts here don't get closed (unless we annoy the mods, and they lock a thread).
You can edit the title of your OP and add a tag like [SOLVED]. Or just leave as it is.
Signature retired

Return to “General discussion”