Dead IP's redux

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,193
Reaction score
10,233
Location
Nkaaaaandla
Hi there

At the moment we are having problems with those dead IP's on several of our sites.

What happens is that we are able to VNC (or VPN) in successfully in one day, and the next day (or after an IP change) we are unable to because of this dead IP. Then we have to phone in to the site in question and request them to reset the PC connected to the router in order to release and renew the IP's.

Are iBurst currently looking at the problem, or what is the situation? I need an answer for my Boss as this will affect our company.

Regards

Libs
 
Is there another way of acquiring a new iBurst IP address without having to reboot?

Is it possible to assign a static IP adress to a 500Mb account?
 
You can change the IP with your router by clicking the Disconnect button and then clicking Connect.
There are times when I need to change IP and thats the easiest way to do it without rebooting the router or modem.
 
Dead IP's

This issue resurfaces from time to time and it has been continuing in Cape Town for the last six months if not longer and it doesn’t seem as if iBurst is able to resolve the issue permanently.

Some threads on the subject:
**********************
http://mybroadband.co.za/vb/showthread.php?t=28356
http://mybroadband.co.za/vb/showthread.php?t=44800
http://mybroadband.co.za/vb/showthread.php?t=51957
http://mybroadband.co.za/vb/showthread.php?t=56531
http://mybroadband.co.za/vb/showthread.php?t=57125
http://mybroadband.co.za/vb/showthread.php?t=57427

The script below (written by seburn) might do the trick: (Ask if you need help)
Copy the text below into Notepad and save it as iBurst.vbs or any other suitable name; change the following three variables; username="[email protected]" and password="password" and arrayBadip=Array("224","225","226") then double click.
You also have the option to uncomment the pop-up msgboxes with the ' character or change the msgs as you see fit.

' *************************************************************** '
' * Initialize some variables.* '
' *************************************************************** '
Dim strDUN
strDUN="iBurst"
username="[email protected]"
password="password"
arrayBadip=Array("224","225","226")
'uncomment the line below for debug
msgbox "Click OK to connect to the internet."
incorrectIP=true
while incorrectIp
InternetConnect
ip=GetIp
incorrectIp=false
thirdOct=ip
thirdOct=right(thirdOct,len(thirdOct)-instr(thirdOct,"."))
thirdOct=right(thirdOct,len(thirdOct)-instr(thirdOct,"."))
thirdOct=left(thirdOct,instr(thirdOct,".")-1)
for i=0 to ubound(arrayBadip)
if thirdOct=arrayBadip(i) then
'uncomment the line below for debug
msgbox "IP of Death found – Click OK to retry :"&ip&""
incorrectIp=true
InternetDisconnect
end if
Next
if incorrectIp=false then
'uncomment the line below for debug
msgbox "Congratulations you have won the iBurst IP lottery! You are now connected with IP Address: "&ip&""
end if
wend
' *********************************************************************** '
' * Subroutine to connect to the internet. * '
' *********************************************************************** '
Sub InternetConnect()
commandLine = "rasdial "&strDUN&" "&userName&" "&password
Set WshShell = CreateObject("WScript.Shell")
call WshShell.Run (commandLine,8,true)
set WshShell=nothing
End Sub

' *********************************************************************** '
' * Subroutine to disconnect from the internet. * '
' *********************************************************************** '
Sub InternetDisconnect()
commandLine = "rasdial "&strDUN&" /Disconnect"
Set WshShell = CreateObject("WScript.Shell")
call WshShell.Run (commandLine,8,true)
set WshShell=nothing
End Sub
' *********************************************************************** '
' * Subroutine to get ip address. * '
' *********************************************************************** '
Function GetIP()
Dim ws : Set ws = CreateObject("WScript.Shell")
Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
Dim TmpFile : TmpFile = fso.GetSpecialFolder(2) & "/ip.txt"
Dim ThisLine, IP
If ws.Environment("SYSTEM")("OS") = "" Then
ws.run "winipcfg /batch " & TmpFile, 0, True
Else
ws.run "%comspec% /c ipconfig > " & TmpFile, 0, True
End If
With fso.GetFile(TmpFile).OpenAsTextStream
Do While NOT .AtEndOfStream
ThisLine = .ReadLine
If InStr(ThisLine, "Address") <> 0 Then IP = Mid(ThisLine, InStr(ThisLine, ":") + 2)
Loop
.Close
End With
'WinXP (NT? 2K?) leaves a carriage return at the end of line
If IP <> "" Then
If Asc(Right(IP, 1)) = 13 Then IP = Left(IP, Len(IP) - 1)
End If
GetIP = IP
fso.GetFile(TmpFile).Delete
Set fso = Nothing
Set ws = Nothing
End Function





* If you have a Netgear Router go to http://192.168.1.1/RST_st_poe.htm and click disconnect and connect untill you have a suitable IP > xxx.xxx.224.xxx.
 
Last edited:
Ahhhh.. thanks for the code...

I was thinking of asking one of our programmers to create an application which will check if it's able to FTP to certain sites, and if not, then it either reboots or disconnect and reconnects. (Anybody willing to create a small VB application based on this for me? PM me for details)

This is a major pain in the behind for us.

Don't get me wrong, iBurst is great, but these dead IP's is an issue that they'll need to resolve - and quickly.

Regards
 
Is anybody willing to code a small application for us?

The application in question must do the following :

1. Check for availability of any FTP site, and if available, if it is possible to FTP anything to it.

If (1) is false then the current PPPoE connection to be terminated and reconnected until (1) is true.


Variables used in the application :

Name of the FTP site
Username and password of said FTP site (to send a test file).

iBurst PPPoE connection username/password


Do let me know


Kind regards


Libs


/edit : this application must be able to run in the background (start from the startup folder) and check for connectivity every 1 hour (also user-defined).
 
Last edited:
A slight modifiaction to the script will allow a ping test of the ftp site and only connect when the ping test passes.

However you need to try the ping test to check if this would be a valid way of testing the fpt site. Ie type ping ftp://www.server.com from a cmd window, make sure the test fails when the ftp is not working and passes when it is.

Making an app that checks every hour and etc is a little more involved I am still getting the utTraceStar up again as a priority.
 
@ Seburn - thanks for the feedback.

I've put in a batch file to reboot the PC at 11 midnight... will see if that helps.

Regards

Libs
 
Top
Sign up to the MyBroadband newsletter
X