Stream Video from 2 Raspberry Pi's in different networks to webserver

I want to send a live video stream from two Raspberry Pi's, that are in different networks (one connected via WIFI and one via 5G) to a server to compare the latency between both connections. I've only found partial solutions and videos on how to stream in the same network or. Does anyone have a possible solution or idea? Thanks in advance!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum