Mia Santara Mia Santara - 1 month ago 6
C Question

How would one send a String from C to Ruby on Rails app over a network?

I have a String generated in C indicating low level platform details of the client, and I need to send this String to a server which will be receiving it through a Rails app.

How can I achieve this?

[upvotes requested so I may get an answer soon]

Answer

To make your Rails application reachable from outside, you need to somehow expose it to the network. There quite a few ways to do this, but arguably the simplest and at least the one that you'll find help for the easiest is to expose it as a web app reachable through HTTP.

You may also take a look at Twilio API for remote connections.

Check out this answer for some idea: here.