lnConnectionState = 0 fResult = InternetGetConnectedState(@lnConnectionState, 0) Declare Integer InternetAutodialHangup In WinInet ; Integer nFlags If lnConnectionState=81 && or lnConnectionState=18 && 1,81=online,82=offline, 18=on with network * Must hang up so we can call a new number InternetAutodialHangup(0) Endif *** to dialup on default ras Declare Integer InternetDial In WinInet ; Integer nHandle, ; String @lpcDialUp, ; Integer nAccessType, ; Integer @nConnect_Handle, ; Integer nFlags nInet_Handle = 0 If !Empty(YourConnectionNameHere) fResult2 = InternetDial(0,YourConnectionNameHere, 0x8000, @nInet_Handle, 0) If m.nInet_Handle = 0 ssiMessage("The connection name in the ini file is "+YourConnectionNameHere+" and it does not work") YourConnectionNameHere = "" Endif Endif If m.nInet_Handle = 0 * this is for the case where they did not send a connection, or they sent the wrong one fResult2 = InternetDial(0,"", 0, @nInet_Handle, 0) Endif If m.nInet_Handle = 0 ssiMessage("Unable to make a dial-up connection to this payer") YourConnectionNameHere = "" Else lnConnectionState = 0 fResult = InternetGetConnectedState(@lnConnectionState, 0) If lnConnectionState != 81 && or lnConnectionState=18 && 1,81=online,82=offline, 18=on with network ssiMessage("Unable to connect to the FTP Network") Else here you are connected and you continue with things listed in the article.I modified this a little from my code to make it more readable so you may get an error or two.