i am building a Playlists managment app for android.
As a part of the app i want to be able to stream a song throgh P2P connection (no server in the middle) from one phone to the other.
i would like to do so with regular cellular company internet and not to be obligated to have both phones on the same wifi.
does anypne have a good way for doing that?
Related
I want to write a chat application which uses WIFI-Direct only and there are no internet or routers at all.
I've created a Wi-Fi P2P Application which can see other devices with enabled WIFI-Direct. The android guides are here : Wi-Fi Peer-to-Peer
Two devices connects to each other with WIFI-Direct and the specifications of connected device will be shown in my app.
At this point, I don't know what is the best way to transfer data between this two devices? Socket programming or what else ways are there to do this?
For Socket programming paradigm, the data flow will be from client to server only, how to transfer data in both directions?
The problem is:
Having an Android device with turns on Personal Hotspot(WiFi/ad-hoc network).
Having an iOS device which connects to the Android's WiFi network.
Is there a possibility to exchange data between the same app build by a developer on both platforms?
If not, is there any way to exchange data between the same app running on both platforms using the current technologies on iOS and Android(so, without using internet connection or tech such as Near field communication)?
Already researched about data exchange using bluetooth which resulted in this.
Started researching about peer-to-peer connection but as its written on the first paragraph of the Multipeer Connectivity, it says "..by nearby iOS devices..".
(Android) Wi-Fi Peer-to-Peer
(iOS) Multipeer Connectivity
Working on an application and there i am using the socket concept to send receive data from connected peer. All you need to do is
Create hotspot network
Allow nearby devices to connect
Send broadcast message like we send in chat. e.g User joined. And in that message send file which you want to download.
Other side in connected peer, Search file in local if exists use output stream to write the data and after writing the whole data just flush it to other side,
Active listener will receive the data in input stream then.
Hope it helps.
I am writing an Android server app that streams mjepg video using http local connection to a client (Google Glass) under the same network environment.The Glass does not support 802.1X EAP so I choose to host a portable HotSpot (teathering) on the server allowing Glass to join. Doing so gives Glass access to the local ip of the server. At this point neither the server nor Glass have internet connection (since they are connected locally with HotSpot and neither has 3G).
My question is if there is a better way to achieve peer to peer video streaming without having to give up the ability to connect to the internet?
Sorry in advance if what I have said above seems ambiguous. I have very little prior knowledge in networking.
==03-07-14 ==
Thanks #greenapps I have updated the question. I hope this is clearer :)
No, the Android device most probably only contains a single wifi client, and it will be unable to perform both as a teathering hotspot and also being connected to another WiFi infrastructure.
The best way to do this, is to have both you clients connect to the WiFi infrastructure instead. But as you hinted, the infrastructure network uses 802.1X EAP, and Google Glass does not support it.
So you are only left with the solution of using another WiFi infrastructure than the one you are trying to use.
I need to know if this is even possible and if it is how I would go about doing this.
I have a laptop, android phone, and Google ChromeCast HDMI adapter. When I am at home and on the same network as the ChromeCast I am able to broadcast by browser window to the Chromecast and thus watch what I am doing on my TV.
I need a way that when I am away from home and on a network that blocks devices from talking to one another to be able to do the same thing.
In order to do this I believe what I need to be able to do is have my Samsung sIII connect to a WiFi point where it has internet access, then for my computer and ChomeCast to connect to my phone on a completely different class c where they are able to access the internet but also talk to one another regardless of if the external network permits it or not.
I can do this by using the phones built in hotspot, but I don't want to use my phones data plan if there is a network I can connect to in order to use their internet.
In addition to using this while I am with clients to broadcast my browser screen, when I am travelling with my family I would like to be able to stream from my Netflix account however most hotels I have stayed in won't let the chrome device connect to my computer because of the AP isolation. Again, it would be nice to connect to the hotel wifi to stream netflix but to let the chrome device connect to the phone as it's access point so the phone can talk to the ChromeCast.
Any help would be appreciated!
Is it possible to push data directly from one device to another over the mobile network without using a server and without wifi or Bluetooth?
(Both have the same app installed.)
How? :)
Yes. Android is capable of peer to peer communication over 3G
Google for android 3G peer to peer and you will get many hits. And you'll see that you have some hurdles to overcome:
Identifying own and target Android's internet IP
Configuring the right sockets etc.
Getting past firewalls
And all this is depended on whether or not your telecomm provider allows P2P in the first place.