HTTP API - NAT

From Ultiroam User Docs
Jump to navigation Jump to search

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);