Some questions about blynk server and NAT

Can somebody explain me please

  1. What port(s) should I open in my router to get remote(controlled) devices connected to blynk-server? I want to connect external ESP8266 devices(they arent in my home wifi)
  2. Do I need to create special config file to allow external connections
  3. How to configure device port to custom one in server config
  4. How to write sketch connection line, if port is not default?
    Blynk.begin(auth, “xxxx”, “xxxx”, IPAddress(xxx,xxx,xxx,xxx)); where should i write portnumber?)))

Thank you for possible answers

8442 for your hardware and 8443 for the App to connect on, if so needed. These are default ports, so no need to change it in the sketch and/or App.

Be aware you only NAT the TCP ports, no need for UDP! And I would highly recommend using certificates to connect with the App, if you are going to use that from outside your local network too.

Cant you explain, please, how to write sketch connect line with non-default port?

Blynk.begin(auth, "xxxx", "xxxx", IPAddress(xxx,xxx,xxx,xxx), port);

Don’t forget to change port accordingly in server.properties file.

For a description at github https://github.com/blynkkk/blynk-server


For APP,it’s 9443,but when I set 9443 for NAT, It’s not work…