Question How can two mobile/ PC devices send information to each other

think2

Senior member
Dec 29, 2009
250
3
81
I'm doing a Flutter app using Firebase and I would like to be able to send data directly from one mobile/PC device to another. If a device sends its IP address to Firebase can another device ask for that IP address and use it to send data directly to the other remote device using TCP. The two connected devices would listen on a port, say 3000, to receive each other's messages.

So a related question, if I run a firebase cloud function that needs to send information of some kind to logged in users, how would I do that. Does firebase need to record the IP address of logged in users in order to send them information. How does Firebase do push notifications?
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,103
126
Maybe this is the similar question you were reffering to?