How to make an android peer to peer without using intermediate server? [closed]
Asked Answered
K

3

13

I need to make an android peer to peer app that should work with any Internet connectivity and without using intermediate server. Can somebody plz give me any start up ideas. I haven't find any answer while googling.

Any help would be appreciated.

Regards, Pawan

Kaliope answered 9/6, 2011 at 19:17 Comment(1)
how do you implement it eventually?Kilimanjaro
T
1

Adobe AIR, which can run on Android 2.2+ devices can use a (fledgling) technology called Adobe Cirrus (used to be Stratus) which makes p2p possible.

If you would prefer to use Java and create your own p2p system, you might like to take a look at this project: peerdroid

However, I don't have any experience using either of these on Android, and you are likely to encounter issues, especially if it needs to work reliably behind NAT routers.... Good luck!

I should also point out that it would be way easier, simpler and (unless your app is huge or very special) - cheaper, to do this the traditional way, with a server in between.

Tallis answered 10/6, 2011 at 1:49 Comment(2)
Hi Tom, After googling li'l bit more I found a solution i.e Sip2peer opensource project links are here and here. Its a newer version of peerdroid and based on SIP. But after reading docs I haven't figure how to implement Bootstrap peer and SBC over public IP.Kaliope
Yes, I looked at SIP2Peer too after writing this. It seems to replace peerdroid. Is that the feeling you got too? I would be interested to know how you get on with this, and which solution you choose eventually. Agreed, the docs were not as clear as they could have been.Tallis
T
0

What you're looking to do is "ad-hoc communication" between devices. Android doesn't have that enabled by default but some people claim they have created libraries that do it. Look around stackoverflow and you'll figure out what's going on.

Trillion answered 9/6, 2011 at 19:28 Comment(1)
I think ad-hoc refers to a type of wifi networking and is quite irrelevant for this question, since Pawan needs this to work over the internet.Tallis
S
0

From Android 4.0, Android provides a Wi-Fi Peer-to-Peer framework, no need for an external library. This Peer-to-Peer is meant for a connection over the air between two Android devices, i.e. not through the Internet. However, this is relatively low-level, as you have to deal with sockets directly.

Schizothymia answered 19/5, 2015 at 23:1 Comment(1)
This builtin P2P framework is not over Internet, doesn't fit the question's need.Kilimanjaro

© 2022 - 2024 — McMap. All rights reserved.