What Is My IP Address? - IP Address Lookup, Bandwidth Speed Test, IP Info, plus more

Go Back   What Is My IP Forum > Welcome to the WIMI Forum > How do you use WIMI

Notices

How do you use WIMI Tell us how and what you use WhatIsMyIP.com for and how frequently you use the site.

Closed Thread
 
Thread Tools Display Modes
Old 02-10-2010, 04:37 AM   #1
bala150985
Member
 
Join Date: Feb 2010
Posts: 4
bala150985 is on a distinguished road
Default Checking MY IP using VBScript

Hi

I have three proxy server's in my environment and I want to check if each of them are able to process traffic which are passing through them.
So I have an internal machine which has a script on it to load [link removed] I want to hit this particular site because the amount of traffic will be very small and it will retrieve my static IP every time I hit that website.
If I am able to see my static IP I intend to keep quiet, if not I will have the script send out an email to me.
Now my doubt is how frequently I can hit the website [link removed] using the script? I am looking at once in every 2 minutes for each of the proxy boxes, which amounts to 15 hits for every 10 minutes. Is this okay?

Last edited by wimiadmin; 02-10-2010 at 06:08 AM.
bala150985 is offline  
Old 02-10-2010, 06:09 AM   #2
wimiadmin
Administrator
 
wimiadmin's Avatar
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 858
wimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to beholdwimiadmin is a splendid one to behold
Default

Hi, the site you are hitting is not ours so we can't say what the threshold is for their automation.

Our automation rules are once per every 300 seconds/5 minutes and our automation page is located here:
http://www.whatismyip.com/automation/n09230945.asp
__________________
Brian
Please Search Before Posting
wimiadmin is offline  
Old 02-10-2010, 09:53 PM   #3
bala150985
Member
 
Join Date: Feb 2010
Posts: 4
bala150985 is on a distinguished road
Default

Thanks Brian
bala150985 is offline  
Old 02-11-2010, 10:37 AM   #4
bala150985
Member
 
Join Date: Feb 2010
Posts: 4
bala150985 is on a distinguished road
Default

Hi

I assembled this code with bits and pieces from all over the internet.

Just call a sub program at the point where error occurs, and WOLA you have your very own proxy checking code

On Error Resume Next
Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
WinHttpReq.SetTimeouts 30000,9000,15000,15000
For i = 1 To 3
If i = 1 Then
WinHttpReq.SetProxy 2,"10.0.0.1:8080"
End If
If i = 2 Then
WinHttpReq.SetProxy 2,"10.0.0.2:8080"
End If
If i = 3 Then
WinHttpReq.SetProxy 2,"10.0.0.3:8080"
End If

WinHttpReq.Open "GET", "http://google.com", False
WinHttpReq.SetRequestHeader "Cache-Control", "no-cache"
WinHttpReq.SetRequestHeader "Pragma", "no-cache"
WinHttpReq.Send
If Err.Number = 0 Then
If WinHttpReq.Status = "200" Then
WScript.Echo "Google page worked"
Else
WScript.Echo "HTTP " & WinHttpReq.Status & " " & WinHttpReq.StatusText
End If
Else
WScript.Echo "Error " & " " & Err.Number & " " & Err.Source & " " & Err.Description
End If
Err.Clear
Next
bala150985 is offline  
Old 02-11-2010, 10:42 AM   #5
bala150985
Member
 
Join Date: Feb 2010
Posts: 4
bala150985 is on a distinguished road
Default

Ofcourse you have to save that code on a test file an rename the extension to *.vbs

Open a cmd prompt

c:\>cscript <somename>.vbs
bala150985 is offline  
Closed Thread

Bookmarks

Tags
checking proxy, vbscript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:48 PM.


What Is My IP - IP Command Lines - What is an IP Address - Speed Test - IP Address FAQ

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com