Arduino, IIS, PHP and AJAX

Hi All

I have run into an issue that I cannot resolve. I have an Arduino with Ethernet shield. This device is setup as a web server. I also have a windows server 2008 R2 server with IIS running. On the IIS server runs a PHP application, this page will collect data from the Arduino, which is returned as a JSON formatted string. This all works fine, except when access from the internet. So :-

  • When accessing the IIS website from the local LAN, everything works perfect.
  • When accessing the IIS website from the internet, IIS does not even make a call to the Arduino (nothing shows in the serial monitor).

Has anybody any ideas?? I know the issue must be in IIS somewhere.

How do you know that an internet access even made it to IIS?

What is the Arduino as server doing? Why are there two servers?

PaulS: What is the Arduino as server doing? Why are there two servers?

^ my initial thought as well.

That being said..

'HOW' are you trying to access your 'device/hardware' from the WAN (internet?)

Have you set up any port forwarding in your router to forward any web (80/8080) traffic to your 'server'?