Reliance Broadband – New Auto Login Script
Yesterday morning when i woke up i saw that my downloads had stalled, my net connection was down.
Being a Reliance Broadnet Unlimited Plan customer, i always used a cURL based script to automate my login and reconnect in case of disconnection.
But yesterday morning the trusty cURL based script also failed. A little probing and i found that Reliance had changed its login page altogether and was using a cookie based authentication.
Lacking time I was not able to probe further.
But today i was lucky to find a new Python based script written by Kunal Dua which worked perfectly fine just like the previous cURL based script.
For ease of reference I am posting the script over here :
#!/usr/bin/env python
# encoding: utf-8
"""
Reliance Login Script v1.0
Created by Kunal Dua on 2009-12-18.
http://www.kunaldua.com/blog/?p=330
This program is free software; you may redistribute it and/or
modify it under the same terms as Python itself.
"""
import urllib2, urllib, cookielib
username = 'Your_User_Name' #replace the text within quotes with your username
password = 'Password' #replace the text within quotes with your password
jar = cookielib.FileCookieJar("cookies")
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(jar))
response = opener.open("http://10.239.89.15/reliance/startportal_isg.do")
login_data = urllib.urlencode({'userId' : username, 'password' : password, 'action' : 'doLoginSubmit'})
resp = opener.open('http://10.239.89.15/reliance/login.do', login_data)
Automate the script via crontab to make it run perodically to make sure that you are logged in.
Hope this script by Kunal Dua is found useful by a lot of similar Reliance Broadnet users like me.
can u plz tell me hw to use this script…i little week on this stuff.. thanks in advance
Hi Abhi,
If you are on
chmod +x scriptName.pypython scriptName.pyHope this helps
thanks for u help..but i dont know hw to run a python file or dont konw hw to schedule the script wid windows scheduler
…. (btw i am using windows vista..plz tel me step by step it wil be more helpful…:))
hi sir is thr any way out for Mac OSX 10.5 users??? im using mac & im still annoyed by the fact that web based authentication is required pls help…
thanx & regards
Hi Dilip,
Dosen’t Mac OSX have any python release for it ??
This script is not working fr me. changed the username and password and saved with .html extension.What else
Hi Bharat,
Please save the script with a py extension.
Hey thanks a lot man. U saved my day…
Thanks Nishant.
Once you login to Reliance it stays for 24 hrs.
Now if script Will run at every 8 hrs or whatever time. If you have completed 24hrs before running script. then you still have some time where you r not log in before schedule kicks in.
@Kunal use logout first n then this script. so say if you run this every 8 hrs your net will have 3min downtime in 24hrs.
Hi Prithvy,
You are saying that first run the logout and then the login?
Yeah you can do that.
But then again 3 minutes of downtime in 24 hrs is not bad when you are on an UL plan
great scripts.
Minor modifications:
better to use reliancebroadband.co.in instead of ip address.
Also in logout script
resp = opener.open(‘http://reliancebroadband.co.in/reliance/logout.do’)
is sufficient
Hi Karan,
The IP Address would help in case of users not using Reliance DNS servers but rather DNS services from OpenDNS or Google.
Hope this helps
Getting the foll. error.
root@ipcop:~ # ./reliance_connect.py
Traceback (most recent call last):
File “./reliance_connect.py”, line 13, in ?
import urllib, http.cookiejar
ImportError: No module named http.cookiejar
root@ipcop:~ # uname -r
2.4.36
root@ipcop:~ # python
Python 2.3.4 (#1, 27-May-2004, 08:55:00)
[GCC 3.3.3] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
KeyboardInterrupt
>>>
I have got python 2.6.4 and things works perfectly fine for me… hope that helps …
Hi,
I am a new user with Reliance broadnet, thanx for the update, however if we run this script, will the login page will completely disabled, I mean we dont have to use it at all?
Please reply to my email.
No the login page won’t be disabled at all. You still will have the option to use the same.
Hey thanx ,
Actually i am really getting annoyed with the login page of Reliance. The main reason I dont want that login page is because I want to connect 2 sys to the Modem which they have provided. It has Lan 1 and Lan 2 ethernet ports.
Can you please advice how to do this?
Regards,
Javed
Hi Javed,
What you can do is, make the login script run at fixed times using cron/scheduler on one of the machines.
Then the other machine would be able to connect to the net without the need of inputting the user id and pass.
Hope that helps…
Hi,
Thanx for the reply, however I am not sure what needs to be done here, if possible can you please let me know where to find this scheduler, or is there any step by step process for this.
Also I need to know do i require a router or will it work on the existing Reliance modem.
And is it possible for you to send me an email how to do this and what the requirements for the same.
Thanx
-Javed
HI,
I tried the steps, i am able to use bb connection without the login page, but I am not able to use more than 1 computer, could you please advice if i require a router or will this reliance modem work.
Regards,
Javed
Hi Javed,
I am using a Linksys WRT54GL wireless router and I am able to use multiple PC’s to surf the net.
Using the Reliance modem you should be able to do the same…but then again..since I don’t use the Reliance modem, I won’t be able to tell it for sure
If the Reliance modem doesn’t work, then try with a router, since for me that works absolutely fine.
Hope this helps …
Hey Thanx for the quick reply,
I would surely try that, are there any settings which we specifically need? And should we remove the Modem provided by Reliance?
Also note I have 2 OS on my sys, Windows 7 and Ubuntu.
Thanx
Javed
One setting that I think that might be of importance is to switch on DHCP on the router and put all the machines to get an IP address automatically.
As for the Reliance modem, you might remove it or you might keep it.
As fr me I have removed it…
hi 7sins,
could u please give a step by step guide to write the python script.
i am a ubuntu 9.10 newbie.
Hi Anshul,
Save the pyhton script into a file with the extension py eg : “reliance.py”
Make the script executable by executing the following command
chmod+x reliance.pySchedule it using cron and be happy….
do we have to copy all the data written in script or specific. i am little weak please respond as quickly
Hi Saumil,
Just copy all the code that is provided for the script. Hope this helps ..
Thanks for the infos! Your blogpost actually helped me.
Hi Waffel,
Glad that it was of use to you…
Best site, i love this!
I am using wireline connection how can i connect 2 system at a same time should i use hub or modem for this task
Hi Sachin,
You need to buy a router(with Wi-Fi, without Wi-Fi as u wish) with 4 Ethernet ports to connect both your systems simultaneously to the net.
Hope that helps..
Could you please give me a detailed info on how to get this working??
Hi Aswin,
Can you please elaborate as to what detailed information you would like ??
hmm…let me see..i think i’ve figured it out.. thanks to YOU and Kunal Dua…
I’ll let you know if it worked for me in a couple of day..
..and thanks again
Yup…got it…works like a charm..
THANK YOU THANK YOU THANK YOU
Hi Aswin,
Glad that it worked for you..
Mr.7 Sins,
I’ve got a question. Is this permanent login system still working??
I still get logged out after 24 Hours
..and yes i’ve copied the entire code given in your website onto a TextDocument (“rpl.txt”) , added my username and password and saved it with the extension .py
and i scheduled the script to run at every hour using the windows task scheduler
Dear Aswin,
Yes, this script is still working for me at least …
hmmm…..maybe i did something wrong..
..Anyways thanks for the reply
Thank you so much dude.
This one script saved my day and many more day to come
I recently shifted over Reliance unlimted connection, and the login page was a pain, though not anymore thanks to you.
I am on unlimited plan and I d/l from torrents 24/7, while the d/l are going on I am afk, and I was noticing that I use to get disconnected hence the d/ls used to get blocked as well. Now I have scheduled the script at every 1 hout interval staring from now and I hope my d/l continues flawlessly.
Anyways, 7Sins should I increase the interval of running the script or something.
And to those guys who want to connect to comps using the Reliance INNOMEDIA Mode having two LAN Ports, well you have to change the MAC Address of another system to the MAC Address of the system you used to first login to the Login page as that MAC Address gets registered to Reliance Server db and becomes a part of authentication process (Reference):-
http://www.4geeksfromnet.com/2009/07/reliance-broadnet-and-mac-address-cloning.html
“”" concluded that the authentication mechanism involved the verification of the PC’s MAC address. Since i had initially connected the CAT5 cable directly to my PC, the PC’s MAC address got registered. “”"
Do it and wallah you will be good to go
Hi Himanshu,
Glad that you found it useful
And yeah in case you get a router you would need to clone the Router’s MAC address to that of your PC
Another question should I just the login script;
Or first run the logout script and then run the login script after 1 minute.
Also the interval is pretty important, i.e. I should the run script for the intervals of 1 hr, 2 hr, 4 hr, 8 hr or 16 hr. Please shed some light on that!!
For me just the login script works just fine. I don’t use any logout script since am on UL Data Plan
As far as I have seen the disconnection times for me are at around 8AM / 2PM / 4PM / 7PM / 9PM / 11PM roughly.
So I have scheduled cron to run the script at every 1 minute interval.. just to be on the safe side
Guess what…got it working again..
I’ve made a silly mistake before
ohh… forgot to mention my thanks
Thank you