HTTP API - NAT: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
==== Application Scenarios ====
Application Scenarios
DRP server can be used to communicate with the gateway behind NAT.  
DRP server can be used to communicate with the gateway behind NAT.  


==== Configuration section ====
Configuration section


# Enable "Tools -> Remote Connection Configuration" in the gateway.
# Enable "Tools -> Remote Connection Configuration" in the gateway.
# Add gateway in DRP server.
# Add gateway in DRP server.


==== API Changes ====
API Changes
Based on the IP and port (in the configuration file) that the DRP server is configured, the API client sends the request to that address;
Based on the IP and port (in the configuration file) that the DRP server is configured, the API client sends the request to that address;



Revision as of 07:49, 8 May 2024

Application Scenarios DRP server can be used to communicate with the gateway behind NAT.

Configuration section

  1. Enable "Tools -> Remote Connection Configuration" in the gateway.
  2. Add gateway in DRP server.

API Changes Based on the IP and port (in the configuration file) that the DRP server is configured, the API client sends the request to that address;

  1. Connect to the DRP server and send the password of the account for authentication Request: https://drpserver_ip:port/doLogin?Username=admin&password=admin After the DRP server authentication passes, it returns 200 OK, indicating that the server accepts the subsequent requests from the API client;
  2. After passing the authentication, send the device serial number to the DRP server: Request: https://drpserver_ip:port/remoteWeb?Product_sns= 0123-4567-890A-BCDE After the DRP server matches the corresponding device, it replies 200 OK, indicating that subsequent requests of the API client are forwarded to the device specified by the serial number;
  3. Follow-up according to the specific function to send the corresponding request, see the API specific usage (the model api client requests are sent to the DRP server);