Kraqule Posted March 2, 2006 Share Posted March 2, 2006 I am building a script to query my router for my ip addy and spitting it back to an outside source so that even when my dynamic addy changes i can see the new ip address and access my pc through my VPN or remote desktop.I have a linksys bfresr41 router and i conect to it via http://192.168.1.1now the tough part does anyone have an idea how to transmit my password to the router via the commandInetGet("http://192.168.1.1", "C:\dyna\status.htm")I have tried: http://:pass@192.168.1.1http://192.168.1.1:\adminI am guessing it is like a cgi script where it would be something similare to this http://192.168.1.1/?pass=passwordTy for your help Link to comment Share on other sites More sharing options...
Developers Jos Posted March 2, 2006 Developers Share Posted March 2, 2006 (edited) moved to support forum... pls read forum purpose before posting ... Edited March 2, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
CyberSlug Posted March 2, 2006 Share Posted March 2, 2006 Related topic might help get you started:http://www.autoitscript.com/forum/index.ph...topic=18954&hl= Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 2, 2006 Moderators Share Posted March 2, 2006 It has to be in this format: http://username:password@url.com So you could try a blank for the username: http://%20:admin@192.168.1.1/status Link to comment Share on other sites More sharing options...
Kraqule Posted March 3, 2006 Author Share Posted March 3, 2006 It has to be in this format: http://username:password@url.com So you could try a blank for the username: http://%20:admin@192.168.1.1/status Oh how I wish...lol reading and trying to understand curl atm. My head now hurts. Link to comment Share on other sites More sharing options...
nfwu Posted March 3, 2006 Share Posted March 3, 2006 Lucky you got a CCNA over here... 192.168.1.1 is the IP address of one of your router's interfaces. Since it starts with 192, a private reserved ip, it can only be accessed from within the network. So, if I take your request this way: +---+ /------\ ******** +------------------+ |COM|=========|Router|============{INTERNET}============| Com with you app | +---+ ^ \------/ ******** +------------------+ . | . +---IP address of this interface is 192.168.1.1 Then i do not think it is possible, unless you know the IP of your external interface. But if the com inside wants to know it's public IP address, try searching the forums for IP and WAN first. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Kraqule Posted March 3, 2006 Author Share Posted March 3, 2006 TY to all that aided my defeat of the mythical beast curl works wonderfully (Must be the SSL functionality) now I can get to writing my script. Essentially my home PC has alot of docs I want to use at work and forgetting to check the IP sometimes causes me extra grief so now I query my Router once an hour for changes and if it does so it sends me the updated ip allowing Remote desktop and VPN to operate as intended and I can still be a cheap bastage. Now I just have to parse the data and voila. Again ty to all that replied and curl is a fun tool. Link to comment Share on other sites More sharing options...
Joon Posted March 3, 2006 Share Posted March 3, 2006 TY to all that aided my defeat of the mythical beast curl works wonderfully (Must be the SSL functionality) now I can get to writing my script.Essentially my home PC has alot of docs I want to use at work and forgetting to check the IP sometimes causes me extra grief so now I query my Router once an hour for changes and if it does so it sends me the updated ip allowing Remote desktop and VPN to operate as intended and I can still be a cheap bastage.Now I just have to parse the data and voila.Again ty to all that replied and curl is a fun tool.If that is what you need. no-ip.com will do the trick. sign-up and get free domain name. Then install DNS update tool on you PC. Link to comment Share on other sites More sharing options...
Gigglestick Posted March 3, 2006 Share Posted March 3, 2006 (edited) I prefer DynDNS.com, but there are literally thousands of dynamic DNS hosts out there, most of them free. Sign up with one and install a client.Better yet, get something like LogMeIn.com or GoToMyPC or something. LogMeIn is free for remote control, and not too terribly expensive for Pro, which allows file transfers, file sharing, and more, and you can add as many hosts as you need. I have an account with probably 10 free clients and 2 Pro ones, most of the free ones are friends and customers. And you can give someone else access to machines in your collection if you want, and control what access they have.Edit: BTW, LogMeIn and GoToMyPC don't require dynamic IP. They will install a client that keeps your machine in contact with their servers and you access their website to gain access to computers in your collection... very easy. Edited March 3, 2006 by c0deWorm My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
Kraqule Posted March 4, 2006 Author Share Posted March 4, 2006 I prefer DynDNS.com, but there are literally thousands of dynamic DNS hosts out there, most of them free. Sign up with one and install a client.Better yet, get something like LogMeIn.com or GoToMyPC or something. LogMeIn is free for remote control, and not too terribly expensive for Pro, which allows file transfers, file sharing, and more, and you can add as many hosts as you need. I have an account with probably 10 free clients and 2 Pro ones, most of the free ones are friends and customers. And you can give someone else access to machines in your collection if you want, and control what access they have.Edit: BTW, LogMeIn and GoToMyPC don't require dynamic IP. They will install a client that keeps your machine in contact with their servers and you access their website to gain access to computers in your collection... very easy.Aye have heard of most of these services but I need VPN and in reguards to the DNS sites. I guess the DNS sites could work but it is always fun coming up with your own solution and then you know your own security and limitations.Ty again guys/gals. Link to comment Share on other sites More sharing options...
Gigglestick Posted March 5, 2006 Share Posted March 5, 2006 Pretty much all broadband routers support dynamic DNS now, and most dynamic DNS hosts support SSL updates, so the security of that solution is basically nil. As for LogMeIn and GoToMePC, I can see your concern with security on those, but I think it's pretty low and their solutions have gone through a LOT of testing and optimization. If you need VPN, I can certainly understand going with your own VPN solution, but if all you need is remote control or file access, these solutions are much better than many others, especially VNC and others. Also, these solutions are used by thousands of corporations, many of which do extensive security testing before they implement a solution like this, so I'm fairly confident in them. My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now