Thanks for the reply! instead of setting up a web server, Can I use a text file (which will updated periodically)? I mean reading the IP from file, would this serve my purpose? One important thing here is in order to compare the Ip addresses, the script has to store the previously read ip also.Is it possible to remember this information? I am very new to javascript so don't have much idea.
On Tue, May 18, 2010 at 6:48 PM, Kwah <[email protected]> wrote: > > I have looked at some of the existing similar scripts, problem with those > > scripts is those are referring to external websites (say whatismyip.com) > to > > find the ip address. > so how do I find > > a change ip address using javascript? Basically I want to reload my page > > when there is a switch (from wired to wireless and vice versa )in the > > network connection. > > > > Is there anyway through javascript to find the ip address locally, by > not > > querying any other external websites? > > > > Depending on whether you connect to your router's web interface > (assuming it has one - most home ones do), you could try scraping your > local IP address from there. > > > As I am using a institute proxy for both wired and > > Wi-Fi connections, when I am finding the ip adrress through > whatismyip.com, > > it is showing same ip address for both wired and wireless. > > > You mention that you are connecting via our institution's network > however, so depending on how 'locked down' the network is, connecting > to your router may not be possible / the info may not be available > without logging in. > > Perhaps if you have a local webserver (eg, Apache / [W|L]XAMP etc) > setup on your machine you could setup a page to display the address of > the 'server' (ie, your machine) and then scrape the info from this > page whenever you want to check for a change in IP address. Of course, > if you do not have a local webserver setup already this is potentially > extreme overkill but that would be my first instinct if I were to try > it. > > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "greasemonkey-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<greasemonkey-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/greasemonkey-users?hl=en. > > -- - Jyothi M.Tech,CSE IITMadras -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
