I have two servers A,B. Due to the network policy, B cannot be directly accessed through port 80 on the PC, but A can access all ports of B. And the PC can access A's 80 port.To view the android in the web, So I need to deploy an Nginx on machine A and route requests to machine B. Nginx is configured as follows:
But the function of webrtc does not work properly, the android.emulation.control.Rtc/receiveJsepMessages api reponse nothing . other API functions are normal.
How to solve this?
I have two servers A,B. Due to the network policy, B cannot be directly accessed through port 80 on the PC, but A can access all ports of B. And the PC can access A's 80 port.To view the android in the web, So I need to deploy an Nginx on machine A and route requests to machine B. Nginx is configured as follows:
But the function of webrtc does not work properly, the android.emulation.control.Rtc/receiveJsepMessages api reponse nothing . other API functions are normal. How to solve this?
Deploy the emulator steps in B machine:
Add Nginx Config in A machine:
l`ocation /emulator { proxy_http_version 1.1; proxy_pass https://B_IP;
error_page 301 302 303 = @handle_redirect;