Thursday 9 January 2014

Introspected tunnels to localhost for rails application

 About ngrok  
 ngrok creates a tunnel from the public internet (http://subdomain.ngrok.com) to a port on your local machine. You can give this URL to anyone to allow them to try out a web site you're developing without doing any deployment.  
 step 1  
 Download and Installation  
 For linux download if from below link and place it in required place  
 https://dl.ngrok.com/linux_386/ngrok.zip(https://ngrok.com/)  
 step 2  
 On Linux Unzip it  
 $ unzip /path/to/ngrok.zip  
 step 3  
 Run it!  
 $ ./ngrok -help  
 $ ./ngrok 3000  
 for example, if you are using port number as 3000  
 In your terminal you will see some thing like this  
 Tunnel Status         online                                    
 Version               ********                                   
 Forwarding          http://*********.ngrok.com -> 127.0.0.1:3000                 
 Forwarding          https://********.ngrok.com -> 127.0.0.1:3000                 
 Web Interface         **************                               
 # Conn            **                                      
 Avg Conn Time         7285.98ms        
 HTTP Requests                              
 -------------   
 *******************************  
 *******************************  
 step 4  
 By using this link you can give this URL to anyone to allow them to try out a web site you're developing without doing any deployment.  
 https://********.ngrok.com -> 127.0.0.1:3000    
 done.......  

No comments:

Post a Comment