Jump to content

Recommended Posts

Posted

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.1

now the tough part does anyone have an idea how to transmit my password to the router via the command

InetGet("http://192.168.1.1", "C:\dyna\status.htm")

I have tried:

http://:pass@192.168.1.1

http://192.168.1.1:\admin

I am guessing it is like a cgi script where it would be something similare to this http://192.168.1.1/?pass=password

Ty for your help

Posted

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.

Posted

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.

#)

Posted

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.

Posted

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.

Posted (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 by c0deWorm

My UDFs: ExitCodes

Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...