hawkesley
Posts: 118
Joined: Tue Jan 12, 2016 10:16 am

connecting two pi's without internet

Wed Apr 24, 2019 12:52 pm

I have a need to transfer a data file between two pi's on a regular basis(every10 mins)
The pi's could be without internet connection.
I found this article on the forum which would seem to do the job
Transfer .txt between two RPi (no internet,no pc)
However it requires the etho on both to have static ip's
Thats fine but would that mean that one at least of the pi's could still connect to the Internet by wifi as normal, or would it be constrained to the static IP?
Thanks for any direction.

User avatar
topguy
Posts: 5626
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: connecting two pi's without internet

Wed Apr 24, 2019 12:58 pm

If the two unit are talking over cabled ethernet (I assume since you mention eth0:). Then the Wifi inteface wlan0 is a seperate thing and should not interfere ( or be interferred by ) the ethernet setup.

But of course you have to make sure that the static addresses are on a subnet which is seperate from the Wifi net.

hawkesley
Posts: 118
Joined: Tue Jan 12, 2016 10:16 am

Re: connecting two pi's without internet

Wed Apr 24, 2019 1:01 pm

Thanks,
Where can I find out about subnet please?

User avatar
topguy
Posts: 5626
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: connecting two pi's without internet

Wed Apr 24, 2019 1:14 pm

Not too easy to find a very clear guide on the subject tbh.
https://www.computernetworkingnotes.com ... mples.html
https://support.microsoft.com/en-in/hel ... ing-basics


To say it with as few words as possible. If your Wifi router assigns devices IP adresses that start with "192.168.0." then your static ethernet addresses need to start with something else like for example "192.168.17."

hawkesley
Posts: 118
Joined: Tue Jan 12, 2016 10:16 am

Re: connecting two pi's without internet

Wed Apr 24, 2019 1:35 pm

Thanks I will give it a go.

mrreality13
Posts: 56
Joined: Tue Feb 26, 2019 6:45 am
Location: texas usa

Re: connecting two pi's without internet

Wed Apr 24, 2019 11:14 pm

could you use ,if you have 1 laying around a old router to connect em together,without having it hooked to the net?
remember ,never approach a computer thinking this will only take a minute
~~pi zero w and a 3b+

LTolledo
Posts: 1678
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: connecting two pi's without internet

Thu Apr 25, 2019 1:05 am

Router ))) ~~~(((WiFi [DHCP] --- RPi#1 --- Ethernet [StaticIP] <-----LAN cable -----> Ethernet [StaticIP] --- RPi#2

I have done similar one with an RPi3B and pcDuino (as WinXP equivalent setup).

the "story" here:viewtopic.php?f=63&t=216517&start=50
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

hawkesley
Posts: 118
Joined: Tue Jan 12, 2016 10:16 am

Re: connecting two pi's without internet

Thu Apr 25, 2019 10:43 am

Thanks Guys. Looks a good solution.
With my project however, it needs to be mobile and the two pi.s will be powered via USB battery power packs.
I guess the router would need mains power. (i do have an old one).
I will post the result in due course.

lrhorer
Posts: 54
Joined: Sun Feb 22, 2015 6:35 pm

Re: connecting two pi's without internet

Fri Apr 26, 2019 11:56 pm

Why the router? I see no point whatsoever in putting a router between the two.

BTW, there are a number of ways to accomplish this, and it does not necessarily require static IP addresses. One fairly simple way is to create a SAMBA share on one host and then mount the share on the other.

Return to “Advanced users”