LAN - WAN Differences ???

Hi all,

I received my BeagleBone Black since a couple of days and I try to understand how it works. I am a retired electronics engineer and near newbie with software.

Currently I play with Beaglebone web pages and I modify them to understand how it works. I play with LEDs and change the action of the “Run” button.

My problem: I do not understand why the “Run” & “Restore” buttons work when using my LAN and no longer work when I use my smartphone via the WAN.

Please could someone explain me how to make it working, because obviously I want to be able to pilot some things in my home since anywhere in the world