p2p

Behind NAT to behind NAT connection

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 03:23:46
问题 I've come across an interesting problem. Basically I have 2 mobile phones that are both behind NATs. I want to communicate directly between the 2 devices using UDP. I know if I initiate a connection from the phones to a server then I can push data back down that connection to the phone (ie send it back from the same port that received the message to the same ip and port that it was received from). So I can easily communicate between the 2 devices by connecting both phones to the server. Then

How does Skype work without port forwarding?

非 Y 不嫁゛ 提交于 2019-11-27 02:40:39
I am designing a p2p application which works on port 30000. My router is not UPnP so I required to forward a port to router. But Skype a another p2p application works without port forwarding on my pc. When I analyzed it with wireshark I found its using UDP port 48980, 58544. I am using c++. There is a library in python here which does it for Nat PnP routers . Is it possible to programmatically forward port to router irrespective of type of router and operating system . What should be the approach to do it in c++ or any other language. rein Skype works in a very interesting way. From what I've

How do I make a TCP server work behind a router (NAT) without any redirection configuration needed

做~自己de王妃 提交于 2019-11-27 02:18:28
问题 The scenario is the following. I have two machines A and B: A: Client (behind NAT) B: Server (behind NAT) I want B to be able to listen on any given port, so that A can send packets to B through that specific TCP port and receive any response. If both machines are not behind a NAT it is pretty straight foward process. However how do I make it work so that it works even when B is behind a router, without him having to go change the router configuration enable some port forwarding etc... For

Android P2P (direct-connection) over the Internet (behind NAT)

跟風遠走 提交于 2019-11-27 01:12:46
问题 I'm starting a small project, basically a multiplayer (as in more than two players) variation of the classic Battleship game. One problem that I'm trying to resolve before I dive into coding is the problem of communication between the multiple players. A current possibility is to use a central HTTP server as the central hub for communication (coupled with the Android C2DM API to allow push communication from the HTTP server to the devices). This seems a nice solution, because in theory as

What techniques are available to do P2P in the browser? [closed]

最后都变了- 提交于 2019-11-27 01:09:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What options does a web developer currently have for implementing client-side peer-to-peer systems in the web browser? Some

Is it possible to set up a socket.io client running (server-side) on a node.js server?

南笙酒味 提交于 2019-11-27 00:36:52
问题 I'd like to enable socket-based p2p communications between two or more different node.js application servers. I'm using socket.io to handle all such communication between a given server and the web application it serves - but what I'm looking for is a way to communicate server-to-server. I had initially assumed it would be as easy as something like this: var io = require("socket.io"); var socket = io.connect("my remote endpoint"); However, as it turns out the server-side socket.io

Peer-to-Peer communication options

风格不统一 提交于 2019-11-26 19:09:30
问题 can anybody confirm what are the currently allowed methods for peer-to-peer communications within the Android framework? I need to transfer json strings and I'm currently using SMS which works ok but the problem is that the data also ends up as lots of text messages. I've read Reto Meier's first edition of Professional Android Application Development where he says that the data transfer options were not implemented due to security concerns. Has this changed at all and how would you do peer-to

Can Android do peer-to-peer ad-hoc networking?

倖福魔咒の 提交于 2019-11-26 18:16:33
Is it possible to set up Android in ad-hoc peer-to-peer wifi mode? For example, I would like to have one phone broadcast a message, and have all peers in the network receive the broadcast, without having a server. I would like to use wifi since bluetooth range is more limited. Here's a bug report on the feature you're requesting. It's status is "reviewed" but I don't believe it's been implemented yet. http://code.google.com/p/android/issues/detail?id=82 Although Android can't find and connect to ad-hoc networks it sure can connect to Access Points. So as a work-around you can turn your

How does Skype work without port forwarding?

旧城冷巷雨未停 提交于 2019-11-26 17:29:47
问题 I am designing a p2p application which works on port 30000. My router is not UPnP so I required to forward a port to router. But Skype a another p2p application works without port forwarding on my pc. When I analyzed it with wireshark I found its using UDP port 48980, 58544. I am using c++. There is a library in python here which does it for Nat PnP routers . Is it possible to programmatically forward port to router irrespective of type of router and operating system . What should be the

Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P)

两盒软妹~` 提交于 2019-11-26 15:43:24
问题 Using HTML5 Websockets, can I open a socket directly between 2 clients (browsers) (assuming I know their IP addresses and there are no NAT traversal issues). I want to send some data directly from one browser to another browser, essentially creating a P2P network. Everything I've read so far on the web, websockets are all used to communicate between client and server, but nothing about client to client. Thanks 回答1: No Already answered here for more details: Do websockets allow for p2p