Sign in to follow this  
Followers 0
Juzzz

resolve ISP

7 posts in this topic

Hello all.

I am new to AutoIT and i already like it a lot :) but i could not find something:

I want to get my ISP adres.

my idea is to change my smtp from my outlook to the right smtp on my laptop when i connect to different places/networks.

I want autoit to set automatic the right smtp from the right ISP from where i am connect that time.

Greets,

juzzz

Share this post


Link to post
Share on other sites



Something like this:

#include <INet.au3>
MsgBox(0,"",_GetIP ())

Share this post


Link to post
Share on other sites

_GetIp() will only get him his public IP address.

What he should do afterwards is go through RIPE database (ARIN, APNIC, LACNIC or AFRINIC depending on location) to find his provider and then extract server's domain (subdomain). Bit of this and a bit of that and he should have no problem getting desired server's name.

This is, of course, all in case he's a male.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Try this:

; Get and display WAN IP address
   If InetGet("http://checkip.dyndns.org", @TempDir & '\getip.out') Then
       $sCurrIP = StringRegExp(FileReadLine(@TempDir & '\getip.out', 1), "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", 2)
       FileDelete(@TempDir & '\getip.out')
       
       MsgBox(64, _
           "GetIP", "WAN IP Address: " & $sCurrIP[0] & @CRLF & _
           @crlf & _
           "Local IP Address: " & @IPAddress1)
   Else
       MsgBox(16,"GetIP","Unable to retrieve WAN IP Address." & @CRLF & "Make sure you have Internet connectivity and try again.")
   EndIf

Share this post


Link to post
Share on other sites

Thanks for the fast reply.

@trancexx:

I live in the netherlands.

@TheXman:

Thanks a lot, i try it directly when i am at home.

I'am now at school and they blocked it some how.. on th website http://checkip.dyndns.org i get an 145.118.X.X IP.

i edit this post when i tested it at home.

thanks again,

Juzzz

Share this post


Link to post
Share on other sites

...i could not edit my post, i think i have no permission to do that (why..? don't ask me).

--------------------------------------------------------------------------------------------------------

Ok i tested it and it worked 50%..

you get your WAN IP an your local IP, but i now want to get the hostname like 'xs4all' or other (don't know the hostnames in your country).

How does a website resolve your IP like this website:

http://whatismyipaddress.com/

and then press the "Lookup IP Address" Button

mine is:

Hostname:**-***-**-***.ip.telfort.nl
ISP:    Green ISP B.V.
Organization:   Telfort Internet
Proxy:  None detected
Type:   Cable/DSL

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0