Nova Posted July 9, 2004 Share Posted July 9, 2004 Is there away of making auto it find ur external ip not ur network ip and past it into an open notepad file ? Even if somebody justs know how to do the first part that woudl be great ! Link to comment Share on other sites More sharing options...
emmanuel Posted July 9, 2004 Share Posted July 9, 2004 the question ins't really if autoit can do it, it's more "is there any app or windows component that can do that?" "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Nova Posted July 9, 2004 Author Share Posted July 9, 2004 Srry I was in a bit of a rush when I posted ! Is there windows component I can call on with an autoit v3 script that can get my external ip address and paste it into notepad ? Now can u plz help me ? Link to comment Share on other sites More sharing options...
emmanuel Posted July 9, 2004 Share Posted July 9, 2004 If I'd have known, I would have said, poorly asked or not... no worries, I just have no clue. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
emmanuel Posted July 9, 2004 Share Posted July 9, 2004 google knows all. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Nova Posted July 9, 2004 Author Share Posted July 9, 2004 Lol hehe after all that ! Why didnt u say o and by the way I dont have a clue how to do that ? I mean u corrected my horrible use of language and grammer in a programming forum ! I should be correcting u saying this is an autoit scripting forum....the function of this forum is to help and seek help for all things autoit.... Its not an english class ! Link to comment Share on other sites More sharing options...
Nutster Posted July 9, 2004 Share Posted July 9, 2004 Talk with your network administrator. You would need to query the firewall and how to do that changes from model to model, if you even have the permission to do it. When you have an intranet behind a firewall, typically everybody shares the external address of the firewall, with the firewall keeping track of which connection goes where. Your network administrator should be able to tell you what the external address is. You should check with your manager to see if there is a desired IP address to put on your correspondance. If you are the network administrator, check the manual for the firewall to determine how to get the current firewall external and internal addresses. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Developers Jos Posted July 9, 2004 Developers Share Posted July 9, 2004 (edited) Srry I was in a bit of a rush when I posted !Is there windows component I can call on with an autoit v3 script that can get my external ip address and paste it into notepad ?Now can u plz help me ?What do you mean by "External IP address" ?Is that the address you get assigned to your DUN interface ?If so it should be one of the @IPAddress1-4 addresses... Edited July 9, 2004 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...
Nova Posted July 9, 2004 Author Share Posted July 9, 2004 (edited) Ok srry I am my network admin and I know at least 20 ways I can get my external Ip ! There are tons of programs out there to do it ! Or u can just goto www.whatismyip.com Or type ipconfig into cmd Im just trying to find a way to make an autoit script find it! Edited July 9, 2004 by nova Link to comment Share on other sites More sharing options...
Nova Posted July 9, 2004 Author Share Posted July 9, 2004 When I say external ip address I mean the ip ur ISP has given u and not a network ip like 192.168.x.x. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 9, 2004 Developers Share Posted July 9, 2004 When I say external ip address I mean the ip ur ISP has given u and not a network ip like 192.168.x.x.Is it assinged to your pc or is their a LAT router/Firewall in between.If it is assigned to your pc you can get it by using @IPAddress1-4 addresses... Or try a URLDownloadToFile ( "www.whatismyip.com", "filename" ) and read the file. 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...
emmanuel Posted July 9, 2004 Share Posted July 9, 2004 Lol hehe after all that !Why didnt u say o and by the way I dont have a clue how to do that ?I mean u corrected my horrible use of language and grammer in a programming forum !I should be correcting u saying this is an autoit scripting forum....the function of this forum is to help and seek help for all things autoit....Its not an english class ! then I may as well correct you saying this is an autoit forum, not a network admin forum... just kidding, I've asked for enough non-autoit stuff here, knowing that there's alot of other tech types... anyways... that google search did turn up a few promising leads, I just don't really have time to hunt them down for you... "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
emmanuel Posted July 9, 2004 Share Posted July 9, 2004 Ok srry I am my network admin and I know at least 20 ways I can get my external Ip !There are tons of programs out there to do it !Or u can just gotowww.whatismyip.comOr type ipconfig into cmdIm just trying to find a way to make an autoit script find it!so, take the output of one of those programs and have autoit manipulate it... might even be able to urldownloadtofile www.whatismyip.com and get the ip from that. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Nova Posted July 9, 2004 Author Share Posted July 9, 2004 Actually thats a great idea downloading the the www.whatismyip.com html file. Perfect tnx emmanuel ! Link to comment Share on other sites More sharing options...
cowsmanaut Posted July 11, 2004 Share Posted July 11, 2004 192.168.x.x... hmmm sounds like a Dlink router? you realise if you go to 192.168.0.1 that you can get your assigned IP of the router from there as well as realease and renew it. You could also grab that information from that page as well. moo Link to comment Share on other sites More sharing options...
Nutster Posted July 12, 2004 Share Posted July 12, 2004 A lot of router manufacturers use the prefix 192.168.X.X for their internal networks. Watchguard uses 192.168.25.X as its internal addresses. It changes from manufacturer to manufacturer but 192.168.X.0 is usually the interface for the router/firewall. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Marc Posted July 13, 2004 Share Posted July 13, 2004 ; run ("start http://whatismyip.com") ; advantage: works always, independant of browser type. ; disadvantage: starts URL in the current window if one exists run ("explorer.exe" & " http://whatismyip.com") WinWait ("Your ip is") $titelzeile = WinGetTitle ("Your ip is") WinClose ("Your ip is") $ergebnis = StringSplit ($titelzeile, " ") ClipPut($ergebnis[4]) Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
cowsmanaut Posted July 13, 2004 Share Posted July 13, 2004 yay.. learned a cool new tool that will help you out. in a command prompt tracert -h 2 www.hiddensoft.com or any other web page you like.. it traces the IP's it passes through to get to that point. the '-h 2' denotes the first two 'hops' which would be your router and the IP that you get from your ISP. pretty cool yeah? so you could plug that into a string and grab the Last portion as your IP for your computer moo Link to comment Share on other sites More sharing options...
emmanuel Posted July 13, 2004 Share Posted July 13, 2004 yay.. learned a cool new tool that will help you out.in a command prompttracert -h 2 www.hiddensoft.comor any other web page you like.. it traces the IP's it passes through to get to that point. the '-h 2' denotes the first two 'hops' which would be your router and the IP that you get from your ISP. pretty cool yeah?so you could plug that into a string and grab the Last portion as your IP for your computer moounless you're inside a larger network. my first two hops are still inside my corporate hq. just a comment. you did find a decent fix for the home user. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
cowsmanaut Posted July 13, 2004 Share Posted July 13, 2004 well just increase the number of hops '-h (number)' to end at your outside IP. ie tracert -h 5 www.hiddensoft.com the advantage here is that you don't need to have a solid connection to the net.. just your network.. as it wil try to make it there and fail once it get's outside your network.. where as if you lose your net connection then http:/whatismyip.com us useless.. or if that website itself goes down.. same deal. so I figured in that respect it would be a usefull tool. moo 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