Comunication between local arduino and external server

Hi.
I have an Arduino(with an ethernet shield) that receives data from some devices, And I want to use that data in some online services.

The problem is that I can't port forwarding Arduino server on every network connection.

I have thought about that solution but it's going to flood the server:

Arduino check the URL: HTTP://server.com/commands/ for X seconds for new commands
once it's executed, it will make another request and fetch the required data and send the data with another request.

the issue is the delay in response and the number of requests to the server.

I'm looking for a way to open a connection to server.

I'm using Java sprint boot Application, there is an option to implement that kind of connection?
How does it exists in other IoT devices are making that kind of connection to the devices?

Thanks for the help

Are you trying to use the Arduino as a lone-TCP/IP device and port-forward its address across your router; possibly to keep your server invisible and behind the firewall?

Please post a block diagram showing the logical blocks involved.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.