Running two IPFS node on same machine connected to Lan and Wifi

Hey guys,

I am in a situation where I need to use IPFS running locally as well and one IPFS instance running on a internet connection.

Here is my config.

I have 3 RaspberryPI running on local Wifi network and one desktop machine running on internet via Lan. I wanna connect the desktop to local Wifi as well and run IPFS on WIFI network so that it can become a peer and also running a seperate IPFS instance on different port that runs on internet network.

When there is any change in data in local network, it should replicate in local node as well plus to the internet node as well.

Any thoughts/help how I can achieve it?