# Comunication between local arduino and external server

**URL:** <https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893>\
**Category:** General Guidance\
**Created:** [September 11, 2022, 8:51pm UTC](https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893 "2022-09-11T20:51:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eshk12](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Eshk12](https://forum.arduino.cc/u/Eshk12)\
**Post date:** [September 11, 2022, 8:51pm UTC](https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893/1 "2022-09-11T20:51:45Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![mrburnette](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mrburnette/32/702556_2.png) [@mrburnette](https://forum.arduino.cc/u/mrburnette)\
**Post date:** [September 11, 2022, 9:03pm UTC](https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893/2 "2022-09-11T21:03:12Z")

</div>

> [@Eshk12](#):
>
> 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.

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?

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [September 11, 2022, 9:43pm UTC](https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893/3 "2022-09-11T21:43:50Z")

</div>

Please post a block diagram showing the logical blocks involved.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 10, 2023, 9:44pm UTC](https://forum.arduino.cc/t/comunication-between-local-arduino-and-external-server/1030893/4 "2023-03-10T21:44:22Z")

</div>

Closed on March 10, 2023, 9:44pm UTC

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