I have a node.js server running on ec2. I’d like for that server to automatically push data to another node.js server that is running on my laptop.
What is the best way to do something like this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a service like showoff.io to create an entry point to access your local laptop, or you could just create an SSH tunnel by running this command on your laptop:
That will allow
porton the loopback interface of your EC2 server to connect toremoteporton your laptop.Then just modify your code to connect to the node.js program running on your laptop via the IP of
127.0.0.1and port ofport.