I have two web hosts. One with a standard shared hosting provider, and the other: AWS Free Tier. I would like for these two servers to be able to communicate with one another. Basically, I would like the shared server to send some information to the AWS server, causing the AWS server to run certain scripts.
I am familiar with python, so am wondering if there is some python library I can use to quickly cook up a script that would listen to a certain port (on AWS). Also, security is in issue: I want AWS to only listen to requests from a certain IP. Is this possible? What python libraries could I use for something like this?
I am fairly new to web programming and wasn't able to google the solution to this. Thanks!
Take a look at Python Network Programming. It should get you started.