Android Question Send data to another phone using 4G

zed

Active Member
Licensed User
Hi,
I would like to send data to another smartphone using 4G

I sent data using the internet with httpjob and it works fine,
I sent data using Network + AsyncStreams + B4XSerializator over a wi-fi network and it's great,
But what to do with 4G if you don't know the ip address.

If anyone can explain to me
Thank you so much
 

MikeSW17

Active Member
Licensed User
Longtime User
Obviously you could send data via a text message if you know the phone number.
But your question suggests you want more than that.
To 'exchange' data between mobile devices, you need an intermediary (internet site) URL that the device(s) connect to and regularly (as/if it changes) update their current IP address. Simplistically, That site performs the linking of device/user names to IPs.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
I think I read somewhere that carriers do not allow unsolicited incoming connections to a device even if the IP address of it is known - is this true?

If so, then that intermediary server would also have to act like a proxy to allow each phone to send packets to one another.
 
Last edited:
Upvote 0

zed

Active Member
Licensed User
The result is to make a direct connection to the smartphone without having to go through a web server.
 
Upvote 0
Top