How to making P2P connection between two android device without WI-FI?
I am working on IP cameras video streaming application over RTSP in android. How to make Peer-Peer connection between IP cameras and device (android) for streaming using TCP/UDP hole punching.I have not enough knowledge about these.Anyone please share about these with some suitable example.
See also questions close to this topic
How send POD log to remote syslog server UDP 514?
How send POD log to remote syslog server UDP 514? Configured at Kubernetes level? Or at POD level? I don't find any examples. I have a feeling that it is not supported.
How to send Android sensor data(stream) to server
Android sensor(Gyro) is a very sensitive it provides a data very fast, I need to send sensor data to server respective of changing gyro value.
1.which connection protocol is preferable to send packets, whether TCP or UDP?
2.what type server side technology(like a python, java) best for process the data and store in to db?
How to send and receive packets to remote server using UDP in Python?
I am trying to send and receive UDP packets in python 3 using the simple code below. However, this does not seem to work. Can someone please tell me what I am doing wrong? My program works internally on my machine, but will not receive packets from a remote server. It should work with this server and port number : 18.104.22.168:8000.
Another test server is 22.214.171.124:8001
Moreover, I feel like the line that may be causing problems is: clientSock.bind((socket.gethostbyname(socket.gethostname()), listening_port_number))
I am working on Windows.
import socket clientSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #the next line (which is commented out)works when I run my program and contact a server on my own machine #clientSock.bind(("",listening_port_number)) my_host_IP = socket.gethostbyname(socket.gethostname()) #the following does not work for receiving packets from a remote server clientSock.bind((my_host_IP, 8001)) def send_packets(): address = '126.96.36.199' port = 8000 clientSock.sendto(my_host_IP.encode('utf-8'),(address,port)) print("Sending packet to address and port number: %s %s"%(address,port)) modifiedMessage, serverAddress = clientSock.recvfrom(2048) print(modifiedMessage.decode()) send_packets()
Python3 - Port forwarding using UPNP using sockets to make a peer to peer network
I've messed around with sockets for a while and in order to forward a port, I need to port forward on my router as well as open the port on my windows firewall. I'm trying to set up a peer to peer network using python3. I've heard that the only way to make this possible is to use UPNP. What packages would make this possible so that the peers don't need to configure their firewall or router? Thanks for your help <3
TCP Hole punching c++
I want to make a simple p2p application and as far as I researched, the best way seems to make a hole punching in each app instance (though I don't know if hole punching is indeed the best option available) in order to them to be visible on the internet. Anyway, is there in c++ library to help me with that? Or, if not, how to make TCP holepunching using the sockets API available?
IPFS p2p experimental feature
Can't understand basic usage of this feature: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-p2p
Open a listener on one node (node A) ipfs p2p listener open > p2p-test /ip4/127.0.0.1/tcp/10101
Ok. It's easy.
Where /ip4/127.0.0.1/tcp/10101 put address of application > you want to pass p2p connections to
What application? Side app? What does it mean "pass p2p connections to"? Where? Usual host:port format?
On the other node, connect to the listener on node A ipfs > p2p stream dial $NODE_A_PEERID p2p-test /ip4/127.0.0.1/tcp/10102
Why different port? How connect if node B dial makes similar listener as listener on node A?
Node B is now listening for a connection on TCP at > 127.0.0.1:10102, connect your application there to complete the connection
What app? How connect? How this scheme is working and looking?
Maybe somebody has a code example? Thank you all.