2

I am trying to access a web server behind NAT. The challenge is: because there could be several web servers coexist, router registration based on port is not a feasible solution here.

I apologize this looks more like general question, because I really don't know where to start after reading online sources related to NAT traversal, which technique to choose: proxy, tunnelling, WebRTC, ICE?

I experiment a little bit with libnice. It will output a string which looks like candidate list that can be sent to the remote peer to let it connect in. But it doesn't look obvious how to embed the string in Http URL.

Your help is highly appreciated. Thanks.

4

1 回答 1

2

通过将不同的端口转发到每个 Web 服务器,您可以在 NAT 防火墙后面运行多个 Web 服务器。

例如:

yourip:8080 ->port forward-> web server 0 running on 192.168.1.10
yourip:8081 ->port forward-> web server 1 running on 192.168.1.11
yourip:8082 ->port forward-> web server 2 running on 192.168.1.12
于 2015-02-14T00:54:12.657 回答