Network settings getting flushed and flushed!!

Everything else that doesn't fall into one of the other PB categories.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Network settings getting flushed and flushed!!

Post by dagcrack »

I connect to my adsl using a setted IP at the network settings... so I always have the same ip (aka "parked").... okey thats nice! but this settings gets flushed when I lose connection (even if I disconnect by hand and reconnect, the settings are gone) so the custom ip is gone and if the server wants to give me another ip.. it will.

How can I force this setting to stay? or at least dial with a given IP from PB? Im using this for dialing:

took it from this forum..

Code: Select all


 isp$="CONEXION ADSL" ; Default connection name.
  
  
  ConnectionID=98981 ; 1 = Any number you want to identify this connection.
  If InternetDial_(0,isp$,2,@ConnectionID,INTERNET_DIAL_UNATTENDED)<>#ERROR_SUCCESS
  Debug "Connection was unsuccessful..."
  Else
  Debug "Connected successfully!"
  
  EndIf

thats just the chunk of code I use for connecting to my adsl account from PB (I programmed a whole tool etc, doesnt matter right now).

I need this because im going on vacations and of course! I want my system on if something happens, and I already achived this.. but the network settings gets flushed for some reason I dont know and it will sometimes connect with another IP.

hope someone can help me fast :s got half day before I go .

thanks
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

look:


Image


thats the setting im talking about... (where the ip is set) it gets flushed (it goes to "obtain an ip address automatically".... grrrrr
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i suspect you can not... it's a dial up account you're talking about here, isn't it?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

adsl.... yes..
I dont get why this UGLY "$)"!%?(!"%?!") WINDOWS XP deletes my setting!!!! I dont get it its simply IDIOTIC!
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

My programm runs ok (tested it)

But it connected to another ip.... because of what I said.. it flushes the setting (dunno WHAT causes this, I believe that it "could" be a bug in the tcp/ip from microsoft?? I hope not, it shouldnt... ). I remember a while back the setting was saved but... I think since I have SP2 that wont happen again... it gets flushed, I still dont get why!.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Post Reply