element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Internet of Things
  • Technologies
  • More
Internet of Things
Forum How to communicate to a Arduino behind firewall or router from a website
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 13 replies
  • Answers 1 answer
  • Subscribers 511 subscribers
  • Views 3654 views
  • Users 0 members are here
  • internet of things dashboard
  • blynk
  • internet control
  • arduino
Related

How to communicate to a Arduino behind firewall or router from a website

krrishh
krrishh over 8 years ago

I have developed a arduino application which listens to http connections but I need help in controlling the device through internet like how Blynk does. I have bought a website domain hosting which supports php webpages and python app. If anybosy could point me to a right direction to develop a script which can be hosted to the internet it will be helpful.

P.S : I don't want to use the services like thingspeak or Blynk but i want to develop one like them. Please guide me.

  • Sign in to reply
  • Cancel

Top Replies

  • BigG
    BigG over 8 years ago +2 suggested
    This is my suggestion. You could have saved yourself some money by using Google's Firebase service instead of paying for web hosting, as there is a free tier option. You can also use something like Cloudflare…
  • rob65
    rob65 over 8 years ago in reply to krrishh +1
    You can be sneaky about the way you manage it. You build the intelligence into your arduino app to handle it. The web interface contains the state of your arduino. The arduino then just reads the information…
  • BigG
    BigG over 7 years ago +1
    Suggest searching online. Another useful source of info is youtube. The Google Firebase team have created there own youtube channel. Loads of stuff on there to help (almost too much stuff): https://www…
Parents
  • shabaz
    0 shabaz over 8 years ago

    Hi Gowtham,

     

    The simple answer is, why do this? Better to run your Arduino as a client, not a server. That way you have nothing to configure on router/firewall. Simpler and safer.

    It means your remote site acts as the server.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 8 years ago

    Hi Gowtham,

     

    The simple answer is, why do this? Better to run your Arduino as a client, not a server. That way you have nothing to configure on router/firewall. Simpler and safer.

    It means your remote site acts as the server.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • krrishh
    0 krrishh over 8 years ago in reply to shabaz

    hi shabaz, thank you for your reply. I know if we configure arduino as client we dont need port forwarding and no nat issues but how to send a data from a PHP website to to arduino. I mean how does the basic web server(PHP or Python) know that the arduino has connected to it and send message appropriately.

     

     

    To put it simple consider System A is a windows application behind NAT router firewall which has a TCP client located at say location A. System B is a Arduino device which needs to be connected through TCP and it is also behind another NAT router firewall located at sat location B. I have a basic cPanel website server(I dono if this is sufficient enough). I want to communicate between system A and System B without configuring any router firewall to port forward the requests. I know we need to make System A a client and System B also as a client and use the server to be a bridge between them. But my question is how to do that in my server.

     

    Thanks,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • BigG
    0 BigG over 8 years ago in reply to krrishh

    The Firebase architecture is a pretty good option for this sort of star configuration. You can have websites, mobile apps and arduinos all talking to Firebase, via its database and it will handle the updates and authentication for you.

     

    Considering that you are looking to learn how to develop something similar using php on cpanel web hosting, I would suggest you spend that time learning Firebase as, in my opinion, I found that easier to grasp than Pubnub and have not played with Nabto enough, and is much quicker to get up and running than doing everything from scratch.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube