How to connect to Intranet Server through Ruby

Hi ,

I have my application on two different servers

  1. text drive server

2 intranet server located at some place.

Right now i am using VPN to access my application that is on intranet
server.

Now i need to connect to intranet server and want to access my
application on it using ruby code from my textdrive server.

Could anyone tell me how could i do this ?

Thanks,

Piyush.