N
N
NEO not chosen2019-07-29 15:54:22
Computer networks
NEO not chosen, 2019-07-29 15:54:22

Peer network. The problem of "gray" IP-shnikov. How to decide?

Disclaimer:
I am writing a program in python, I need to set up two-way real-time data exchange between two PCs (the data itself is not heavy).
You need to establish a peer-to-peer connection between two computers.
Problem: many home computers now have "gray" IP addresses hidden under NAT, i.e. to such a computer, it is impossible to establish a connection if it does not establish it itself with a server with a "white" IP address. Are there any ways to do this without a server, or do you still need an intermediary server to establish a connection? If possible only with a server, are there any ready-made solutions for this or online services (generally ideal)?
Thank you!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
X
xmoonlight, 2019-07-29
@NeoIsNotTheOne

https://www.websocket.in/

A
Anatoly, 2019-07-29
@Tolly

There are only 2 and only paid options:
1) either buy a dedicated external ip on one of the PCs
2) or buy a vps and set up a virtual router on it

V
vreitech, 2019-07-29
@fzfx

to establish a connection between two hosts with a gray IP without any additional third machine with a white IP, you will need to use pwnat . other methods that do not require an intermediate server with a white IP are unknown to me.

S
Sergey, 2019-07-29
@SuNbka

You can try using a DNS name instead of an IP. Many routers have such a feature as a dynamic DNS name for connecting to it from the outside without a white IP.
Get a free name on DynDNS or another resource.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question