p2p

What type of NAT combinations requires a TURN server?

☆樱花仙子☆ 提交于 2019-12-11 02:19:52
问题 According to: https://en.wikipedia.org/wiki/Network_address_translation there are 4 types of NAT configurations: Full-cone, Address restricted, Port restricted, and Symmetric. Now, suppose we have client A and client B on separate networks and are hidden behind their own separate NATs. What combinations of "client A NAT type" + "client B NAT type" would require a TURN server to be involved (i.e. not solvable by the STUN protocol) if they want to p2p communicate? For example, I would suspect:

Why do I always get BUSY when using WifiP2pManager?

百般思念 提交于 2019-12-10 19:08:17
问题 I am trying to connect two Android-Devices using Wi-Fi Direct. On my HTC-Phone (One SV) it seems to work, but with my second device a LG Optimus 4xhd it doesnt work. In my onResume() function I start the following thread: new Thread(){ private int count=0; public void run() { mManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Log.d(tag,"SUCCESS - started discovering peers"); } @Override public void onFailure(int reason) { count++; String

Sending and Receiving an Invitation with Multipeer Connectivity

喜夏-厌秋 提交于 2019-12-10 19:06:19
问题 I know this question has been asked before, but I was just wondering why it isn't working in my particular case. I am trying to send an invitation from multipeer connectivity from one view controller and receive it on another. My code for sending it is: [self invitePeer:selectedPeerID toSession:self.mySession withContext:nil timeout:timeInterval ]; and method is just blank: - (void)invitePeer:(MCPeerID *)peerID toSession:(MCSession *)session withContext:(NSData *)context timeout:

c# UPnP not seems to be work?

笑着哭i 提交于 2019-12-10 11:42:59
问题 I have a c# peer-2-peer project where my application should configure UPnP in users devices to open a port and listen to UDP datagrams , I used NATUPnP.dll Com assemply to map a new Endpoints as the following : NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass(); NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection; mappings.Add(20000, "UDP", 20000, "192.168.8.102", true, "Local Web Server"); foreach (NATUPNPLib.IStaticPortMapping portMapping in

P2P (browser to browser) with Java

天涯浪子 提交于 2019-12-10 04:25:01
问题 I would like to implement a Java application which runs on a webpage and allows: User A (from its browser) can request a file to User B (with its browser opened). Of course User A knows User B's IP and port. User B can respond this request from its browser. Which options (Java libraries, technologies,...) do I have? THANKS! 回答1: If you want Java in the browser, the only way to go is applets. But a normal (untrusted) applet: can not access files on the local system can not listen at any ports

JXTA P2P application over internet

℡╲_俬逩灬. 提交于 2019-12-10 00:19:55
问题 I am learning JXTA and want to master it. I downloaded the tutorial programs from jxta website I have run all those programs from only one PC and worked perfectly fine. But I want it to work over internet. My friend also has an internet connection. We tried to run socket client on his machine while socket server program was running on my machine. I also tried to make myjxta (a jxta p2p application) to work over internet but had no success. We both have ADSL connection and has D-Link ADSL

Is peer-to-peer communication over 3G/4G possible for smart phones?

爷,独闯天下 提交于 2019-12-09 06:59:59
问题 I'm trying to write an app that transfers data from one android device to another - but the devices are most likely located in different parts of the city, state, or country. (The straight forward way would be to have a central server (or any type of server), but i'm trying to avoid using one). The data I'm trying to pass is text, pictures, or a combination of both. The solution I've found so far is to communicate with specially formatted text or picture messages; but that seems far from

Clients/Peers communication with wifi-direct on Android platform

点点圈 提交于 2019-12-08 15:46:59
问题 I have three Android devices: A,B,and C. They are connected via wifi-direct (assuming B is the group owner). I just have two questions: 1. A want send a message to C, does the message have to pass the group owner B to reach C? 2. If the group owner B accidentally disconnected, will A still be able to send messages to C? Thanks! 回答1: In Wifi direct communication the P2P group owner (P2P GO) device implements AP-like functionality in the P2P Group., and devices acting as clients are known as

Writing a simple P2P chat application

╄→гoц情女王★ 提交于 2019-12-08 12:13:47
问题 This is my first experience with P2P and i need some help regarding the design. I am developing a simple messenger application. I have a directory server on which every user authenticates and announces an open port on which every user is reachable. The directory server maintains the users and the ports and I can query the directory server for any specific user. This part is done. The second part is the chat which i think should be P2P. I can start a chat as well as I can be end point of a

NetStream.client custom callback handler problem

给你一囗甜甜゛ 提交于 2019-12-08 08:49:30
问题 I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the problem. The remoteControlStream, is the incoming stream. And the localControl stream is the stream being published This is the localControlStream that's being send by the peer