p2p

android socket programming behind a router

巧了我就是萌 提交于 2019-12-01 01:10:11
问题 Hey guys I have a question or problem. I am trying to make a p2p connection between two android phones. I have each phone connect to my server and I get their private (192.168.1.1) and public (76.123.288.22) IP and along with the ports that they connect to my server. I send a response when the phone connects to the server to open a server socket with a specific port. I also send the other phone the public IP and port of the open socket, but it does not connect. I have read multiple threads on

Proper way to implement a Direct Connect client in Twisted?

浪尽此生 提交于 2019-11-30 23:47:45
I'm working on writing a Python client for Direct Connect P2P networks. Essentially, it works by connecting to a central server, and responding to other users who are searching for files. Occasionally, another client will ask us to connect to them, and they might begin downloading a file from us. This is a direct connection to the other client, and doesn't go through the central server. What is the best way to handle these connections to other clients? I'm currently using one Twisted reactor to connect to the server, but is it better have multiple reactors, one per client, with each one

Is it possible to connect two or more WiFi Direct groups?

时光怂恿深爱的人放手 提交于 2019-11-30 22:54:54
I am currently experimenting with WiFi-Direct (WiFiP2p) for a project I'm working on and wanted to know if one can create bridge between groups, thus joining them together? Based upon the white paper released by the WiFi Alliance, it should be possible (though "The P2P Specification does not describe the mechanism for this capability – implementation is specific to the vendor"). I have looked through the internet and have found some answers ( this , this , etc.) but I feel that none are particularly conclusive. Looking at Andoid's API hasn't helped much either. The scenario I'm trying to

Real-world cross-platform decentralized asynchronous peer-to-peer communication

 ̄綄美尐妖づ 提交于 2019-11-30 20:29:22
My knowledge about network programming is limited, so, all the comments are more than welcome. Essentially my question boils down to the following question: Q1. Is there really such a thing as decentralized asynchronous cross-platform peer-to-peer communication ? Let me explain myself. If we have two http servers running on computers with actual IP addresses, then clearly the answer is yes, assuming one writes a protocol for the interaction. To go one step further, if one of them (or both) is (are) behind a router, then, with port forwarding the communication can still be established. However,

distance between android and iphone

烂漫一生 提交于 2019-11-30 15:39:25
I am looking for a way to transmit data when two phones are close by. This needs to be cross platform so I cannot use NFC or iBeacon. I plan on using allJoyn to send information. I would only like to send data to others that are within a few feet of me. Is there any way that I could get an accurate reading of distance on other phones? Or can I get an accurate distance on a master device that could be placed in the room? Shot in the dark answer: If both devices are on the same wireless WiFi network (same subnet), then any devices on same network are "close enough". When on the celluar network

Peer-to-Peer video from iOS to Android?

跟風遠走 提交于 2019-11-30 13:37:07
I'm start to develop/prototype a Peer-to-Peer video chat application for iOS and Android. I'm trying to create a similar experience to FaceTime or Tango -- ie good quality video, works across the internet/3G (not just on the same LAN). I'm just getting started in the research phase. I've done a bunch of Googling, but haven't found much (since this is a new area for me, I'm probably looking in the wrong places). Can you suggest any pit falls that I should expect to run into? What protocols should I use (from the reading I've done it looks like people use SIP or XMPP, are these the best options?

Use node.js as a WebRTC peer?

落花浮王杯 提交于 2019-11-30 10:42:40
问题 What modules are in existence to use node.js as a peer in WebRTC? I'd like to use WebRTC in a more client/server fashion than P2P for its apparent ability to send packets unreliably. (AKA, I don't want the huge delay TCP makes by guaranteeing packet arrival with data in order) If I have to use a stripped-down browser page as a server, that would perhaps work... however, it would really be sub-optimal. Node.js would make things much smoother, and probably more reliable too. Thanks! 回答1: Have a

How does peer2peer work through a router?

老子叫甜甜 提交于 2019-11-30 07:32:58
How does one PC connect to another over the internet to another PC? An example would be a program listening for connections on PC 1. PC 1 sits behind Router 1. PC 2 has a client program trying to connect to PC 1. What is the correct technology/technique to use as the listening program in this situation? This article by Brian Ford explains how peer to peer communication across NATs work. Most routers also expose a Universal Plug and Play interface (uPnP) which can be used for port forwarding and NAT traversal. You should also check out the STUNT library which is an easy to use NAT traversal

Bluetooth peer to peer networking APIs iOS [closed]

自闭症网瘾萝莉.ら 提交于 2019-11-30 05:18:05
G'Day programmers...I am planning to make an application which will be using peer to peer bluetooth connection between two different iOS device. So my question is, is there any good tutorials which can guide me through? Purpose is to send a stream of strings, like in chat application. I want to learn so you may give me a direction something like, "Hey check this, XYZ API they intent to do what you are looking for..." Or "There is a tutorial ..." Thank you for any kind of help! Research So far : Below link is about networking through wifi but not bluetooth http://jens.mooseyard.com/2009/05/a

Real-world cross-platform decentralized asynchronous peer-to-peer communication

微笑、不失礼 提交于 2019-11-30 04:52:23
问题 My knowledge about network programming is limited, so, all the comments are more than welcome. Essentially my question boils down to the following question: Q1. Is there really such a thing as decentralized asynchronous cross-platform peer-to-peer communication ? Let me explain myself. If we have two http servers running on computers with actual IP addresses, then clearly the answer is yes, assuming one writes a protocol for the interaction. To go one step further, if one of them (or both) is