开发者

Connection to host by Unique id, not IP? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ag开发者_如何转开发o.

I'm trying to make a program in c++...some kind of server software. And i want to know is it possible to connect to server/host not by IP, but by a unique ID, something like TeamViewer one.

Later edit: I perfectly understand that it's the tcp/ip protocol. My problem is NAT. So smth. like directly entering the host's ip won't work. That's why i want to know how this works (teamviewer).

@Alina Danila: I know that TeamViewer uses TCP/IP, but can't understand how a connection is made if the other user is behind NAT?


I think this is not exactly possible.

TeamViewer is based on TCP/IP, it enables remote connections over port 5900. That means, to connect two TeamViewer clients, you connect to a partner`s PC on port 5900.

Even if you introduce just a code, it might be a unique key based on the IP.


TeamViewer's ID is only an abstraction. On the bottom, it uses TCP/IP (hence, it uses IP+PORT) to connect machines.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜