| View previous topic :: View next topic |
| Author |
Message |
sup Guest
|
Posted: Mon Oct 08, 2007 9:03 pm Post subject: How will I get my external IP ? |
|
|
How will I get my external IP via vidalia-tor (127.0.0.1:9051) with Ahk?
Does anyone can help me? |
|
| Back to top |
|
 |
sup Guest
|
Posted: Mon Oct 08, 2007 9:11 pm Post subject: |
|
|
ohh and i forgot to mention that i use FF with foxyproxy, so i dont mess with the internet explorer's proxy setting, so the manual | Quote: | | UrlDownloadToFile will use a proxy server to access the Internet if such a proxy has been configured in Microsoft Internet Explorer's settings. | didnt help me |
|
| Back to top |
|
 |
sup Guest
|
Posted: Mon Oct 08, 2007 9:38 pm Post subject: |
|
|
Help  |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Tue Oct 09, 2007 7:06 am Post subject: |
|
|
whatsmyip.net? (might be .com)
since it goes though IE, then you will get your real, local IP. There is no use getting your external IP through tor, since it always changes. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
sup Guest
|
Posted: Tue Oct 09, 2007 12:39 pm Post subject: |
|
|
That is the point! I need to display in my program the country's name of my exit node. Its very important to me
p.s. why do you think I ask for help? dont you think I look and test every script in every topic related?  |
|
| Back to top |
|
 |
Xenolith0
Joined: 06 Oct 2007 Posts: 6 Location: Adelaide, Australia
|
Posted: Tue Oct 09, 2007 12:57 pm Post subject: |
|
|
| Code: | :SI*:]ip:: ; Replaces "]ip" with user's current external ip address
FileDelete, ipaddress
UrlDownloadToFile, http://cdxliv.net/ipaddress.php, ipaddress
FileRead, ipaddress, ipaddress
SendInput %ipaddress% `
FileDelete, ipaddress
return |
I use that to get my IP address, you mentioned something about IE, but I'm not clear about what you meant. If you cannot use IE, then you can use cURL+AHK and set up the connection however you need to. |
|
| Back to top |
|
 |
Moderator! Guest
|
Posted: Tue Oct 09, 2007 1:00 pm Post subject: |
|
|
| sup wrote: | dont you think I look and test every script in every topic related?  |
You sound offended! How does engunneer know who you are unless you use your registered nick?. Checking the IP of each and every post isnt practical. |
|
| Back to top |
|
 |
sup(pe) Guest
|
Posted: Tue Oct 09, 2007 1:07 pm Post subject: |
|
|
| Quote: | | dont you think I look and test every script in every topic related? | If you would, I'd call you unefficient. If you test those which are related, I'd call you selfmotivated. As we can't see any code you've scrpited on your own but you're complaining, I'd call you smugly.  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5041 Location: imaginationland
|
Posted: Tue Oct 09, 2007 1:12 pm Post subject: |
|
|
Download and parse http://checkip.dyndns.org/ with cURL using the proxy Privoxy creates for tor connections (127.0.0.1:8118 for me). _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
sup Guest
|
Posted: Tue Oct 09, 2007 1:29 pm Post subject: |
|
|
engunneer you have many friends here |
|
| Back to top |
|
 |
Xenolith0
Joined: 06 Oct 2007 Posts: 6 Location: Adelaide, Australia
|
Posted: Tue Oct 09, 2007 2:01 pm Post subject: |
|
|
Sup, I noticed you said you needed the country name as well. So I threw together this page really quick:
http://ip.cdxliv.net/
it returns a plain text page formatted as
| Code: | | <external ip>,<2 letter country code>,<printable country name> |
|
|
| Back to top |
|
 |
sup Guest
|
Posted: Tue Oct 09, 2007 3:09 pm Post subject: SOLVED |
|
|
I reinstaled Vidalia so now it is with Proxy included.
My working demo script :
| Code: | ;THIS SCRIPT WORKS ONLY WITH VIDALIA+PROXY INSTALLED !!!
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
CurlPath=c:\Program Files\curl.exe
RunWait, %CurlPath% -o %A_Temp%\MyExternalIP.txt --proxy 127.0.0.1:8118 http://ip.cdxliv.net/,,Min
FileRead, MyExternalIp, %A_Temp%\MyExternalIP.txt
StringSplit,IPInfo,MyExternalIp,`,
IP:=IPInfo1
CountryCode:=IPInfo2
CountryName:=IPInfo3
MsgBox Country is: %CountryName%
MsgBox IP is %IP% |
I could not have done this without your help . Cheers! |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Wed Oct 10, 2007 3:10 am Post subject: |
|
|
| sup wrote: | engunneer you have many friends here |
and not because I am a moderator with edit privileges, I promise! (I would be banned for it)
some 90% of my posts are trying to help people, I try to answer anything i have info about as quickly as I can. I often wish there was a reputation meter on the forum, though I will admit it is just vanity. (also vain: checking the top ten poster list to see where I stand, but that is inaccurate, since a few people never log in, like Bobo, so he may be highly ranked.)
My point was that even if you check your IP and get the country, how do you know your next request will come out the same place? I thought tor changed nearly constantly. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Seabiscuit
Joined: 07 Jan 2007 Posts: 109 Location: In fund pe scaun, la o bere prin Romania :D
|
Posted: Wed Oct 10, 2007 11:04 am Post subject: A good ideea |
|
|
| Quote: | | My point was that even if you check your IP and get the country, how do you know your next request will come out the same place? I thought tor changed nearly constantly. |
don;t know exactly, but i think i found in tor's manual that u can specify how often tor changes ip, 10 mins is default i think
| Quote: | | I often wish there was a reputation meter on the forum, | I wsh also in this forum a scale from 1 to 5 available to a user that starts a topic, so he can rate an answer, so, from here u can build a really wonderful vanity meter
Chris what do u think?  _________________
Backgammon addicted!
GamesGrid was one of the first online web sites to bring Backgammon to the Internet |
|
| Back to top |
|
 |
|