if we want to read the data from gateway without connecting to Digi cloud what would be the process?

if we want to read the data from gateway without connecting to Digi cloud what would be the process?

Can you provide more details on the type of gateway you’re talking about? The process to query it without Device Cloud can be a bit different depending on the type of gateway, so someone might be able to help more with that information.

It also depends on what kind of data you are reading.
If you want to get sensor/router readings through a gateway like X4, you can write a python program on the X4 to receive these data and send to your own server.
If you are looking for such kind of stuff, following links are useful, http://www.digi.com/wiki/developer/index.php/XBee_Sensors and http://www.digi.com/wiki/developer/index.php/XBee_Wall_Router

Without Device Cloud you will have to use sockets, raw/tcp/udp etc sockets… And make direct connection to your application .

Which gateway do you have? what capabilities it has?

The easiest way is to create a presentation using Digi Dia framework. it is not too difficult to create one. but if you want to send commands in realtime then it is another story