Communication between Mobile and Desktop. Is it possible?

Dear friends,i want to ask a pretty weird question.
Is it possibile to create a “connection” between a Desktop Game and his “Companion” mobile app?

The idea is simple:
I want to pass a variable from a mobile app (created with the engine,of course) to a desktop game,in real time via USB or Shared Internet Connection.
Is it possible?

Thanks in advance.