Как я заставляю сервер TCP работать позади маршрутизатора (NAT) без какой-либо необходимой конфигурации перенаправления

мы используем и возможности полнотекстового поиска, но по-моему это зависит от самих данных и Ваших потребностей.

мы масштабируемся с веб-серверами, и поэтому мне нравится lucene, потому что у меня нет так большой нагрузки на SQL-сервер.

для запуска в пустом указателе и желании иметь полное-textsearch я предпочел бы решение SQL-сервера, потому что я думаю, что это действительно быстро для получения результатов, если Вы хотите lucene, необходимо реализовать больше в запуске (и также получить некоторое ноу-хау).

11
задан Trilarion 15 October 2016 в 12:38
поделиться

3 ответа

An alternative to a proxy server is a match-making server. Instead of proxying all of the traffic, the match maker just negotiates until the peers can talk to each other. This involves finding the external public IPs of the peers and talking to each one so that the firewall/router knows that the peers wish to communicate.

This is called hole punching and it often has to be done by the match maker rather than the peers themselves. Once the hole are punched though, the match maker can tell the peers about each other and they can communicate directly.

0
ответ дан 3 December 2019 в 11:04
поделиться

To answer the example of Peer to Peer programs, and in general: There is a technology called Universal Plug and Play which NAT routers can use to allow clients behind them to expose ports to the outside. That's what bittorrent clients can use so the other clients can directly connect to them.

6
ответ дан 3 December 2019 в 11:04
поделиться

You will have to either:

  1. Set up port forwarding from the nat gateway in front the server into the machine your server software is running, and have the client connect to the IP address of that gateway.

  2. Create a proxy server sitting inbetween the 2 nat gatewys so both your server and client can connect to that. Both your server and client have to set up a connection to that proxy which will mediate the data between those 2 connections.

1
ответ дан 3 December 2019 в 11:04
поделиться