x
ChatBox

Please log in with password to access chatbox.
visitor stats
Index | Back | Reply | New Topic

IP Change Automation

Network crashes during IP change
2010-08-20 16:27
tetrafeldHello, first let me repeat the description of my problem I wrote into the chatbox today at 14:37:

Can not run Utopia with Supermode since about three days. Network always crashes with timeout error when my script for IP change is started as usual. Can anybody help?

@ Utopia: The adequate messages of the IP change routine are shown in the pop-up window, but the timeout error window occures just after that. There upon the network is completely down and Utopia Exchange will no longer start until I reeboted my router. After all, I have a new IP address, and I suggest it was created before the crash. But of course, under these circumstances, I am not able to check the critical moment of the IP change.

Have you any ideas? Thank you.
2010-08-24 20:27
tetrafeldAfter reading the event log, I think this is a problem of the network address server (DHCP).

Does anybody get an idea how to fix that problem?
2010-08-25 03:28
des43tI'm not sure that I understand your question completely, and I don't know what kind of system/OS you use... so this is just a shot in the dark... Google "flush DHCP", and read a few of the hits to see whether it sounds like your problem. You might be able to add a flush command to your script, depending on what you use.

If not, "DHCP issues" brings up a number of sites where people describe various DHCP problems they've having. Perhaps one of them matches your problem?

Good luck.
2010-08-25 12:43
tetrafeld@ des43t
Thank you for your answer. In Google, I looked for a lot of key-words, which seemed to meet my problem, but did not find anything convenient untill today. Additionally I will check the catchwords you told me, with hope that therein I will find something helpful.

****

However, for better understanding of my question, I will try to describe my problem more detailed.

I am using Mozilla Firefox Browser Version 3.6.8 under Windows Vista Home Premium SP 2. There is only one single computer in my home-"network" (and one printer). While playing the "Myminicity"-Game, I usually run Utopia Exchange, assisted by Supermode and by a "reconnect.bat" file, which specifically has been configurated for my router Speedport W 303V, Type B. This configuration operated well up to the present and the reconnection of my router and change of the IP address never failed before.

But for some days, when I start Utopia Exchange, it runs just one time. Afterwards the reconnect.bat starts as usual and its command lines are shortly shown in a popup window. During this procedure, the reconnect.bat tries to reload Utopia Exchange in vain. After a short time the following error message occures on the screen:

"Error: network timeout. The server under utopia.lv needs too long time to send an answer.“

Then, as a result, the computer is disconnected from the internet. If I want new internet connection, I have to reboot the router, manually "by a needle" or using the router's configuration program. At the end, after the restart of the router I can see I got a new IP address, of course.

In my Windows event log the following two items are shown for the time when the reconnection procedure was interrupted:

Warning, eventID 1003, source: Dhcp-client
The computer could not renew the network address, which was allocated by the DHCP-server for the network interface card with the network address ############. The following error occured: The time limit for the semaphore has been reached. Further on it will be tried in the background to get an address from the network address server (DHCP).

And secondly:

Error, eventID 1002, source: Dhcp-client
The IP address lease 192.168.2.100 for the network interface card with the network address ############ has been rejected by the DHCP-server 192.168.2.1 (the DHCP-server sent a DHCPNACK-message).

[Translation from German of the event messages to the best of my knowledge *lol* ]

In this way I hope my question could become a little bit more intelligible. I would be happy, if someone could analyze the problem and show me a way to eliminate it. Thank you in advance.
2010-08-26 14:14
utopia.lvFor me it is hard to understand where the problem is as I do not have experience with router IP address change automation. Here are some thoughts.

As I see your computer has local IP address. It is not clear why there are DHCP errors in your computer's event log, because there is no need to receive a new local network IP address because your local IP address is translated on the router to real IP address. So only real IP address on the router needs to be changed.

I don't know how your "reconnect.bat" script works. Probably something there can be improved. When you are asking for a new IP address for the router, probably you could try to release current IP address before asking for a new one.
2010-08-28 13:29
tetrafeld@ Utopia
You are right - partially ;-)) This shows a way to keep the DHCP-Server off the line. However, the error persists as described on top....just without the error messages regarding DHCP. In case everything is all right with Utopia Click Exchange, maybe my router got damaged, anyhow.
2010-08-29 18:56
tetrafeldHello everyone,

I just spent a weekend with pondering and fumbling, checked and renewed all the concerning files after a registry cleaning, and this way almost succeeded in the restoration of my IP address change automation. Almost, why?

Well, there seems to be one large hurdle before the full functional capability of my system. Ever since, I used the script meritorious published by Hellowien within the forum thread "Restart Firefox if it takes too much memory" on February 25th, 2009:

******

taskkill /f /fi "memusage gt 100000" /im firefox.exe

*** here your way to refresh IP ***

tasklist |find /i "firefox.exe" >nul
if %errorlevel%==1 start firefox.exe -p Supermode -no-remote -url "http://utopia.lv/exchange/profile.php?w=special&name=yourname&pass=yourpassword&profile=load&loc=supermode"

******

I reduced the critical memory usage to 50000 K, and in Firefox under about:config I set the item „browser.sessionstore.resume_from_crash“ to false. This way, it run really satisfactory in the past. And now it might run satisfactory in the future after my repairs.

But unfortunately after every round of Supermode during the restart of Firefox the performance is stopped by the popup window of the profile manager, which wants to tell me, that my data and settings will be stored at my personal profile. That may be most interesting, but the automation has been interrupted and I have to restart Firefox manually. Thereafter the steps of the script are continued correctly until the popup window......*grumble*

I guess, this failure has to do with the performance of the script lines

******

tasklist |find /i "firefox.exe" >nul
if %errorlevel%==1 start firefox.exe -p

******

on my computer, but I can not imagine why and how. If you want to tell me I forgot to check the 'Don't ask at startup' box at the profile manager window,.................I did not forget it.

Perhaps anybody will be able to supply the last particle of the puzzle for the new operability of my IP change automation.

Thank you for your patience.
2010-08-29 21:19
TinaXHi there...

... i had a similar Prob. with the Profile Manager a while ago ... it always appeared after a re-start, activated or not.

Well i couldn't find the reason why and gave up searching and decided to uninstall/reinstall FF completely and it worked.
I think there was a bug anywhere hidden in the profile or the settings ... it's worth a try i think but don't just overwrite your actual profile .. get rid of it completely and install it again.
Well, make a backup before so you can use it later again if that won't help ;-)
2010-08-30 09:18
tetrafeld@TinaX
Thank you, Tina, for your answer. I tried different de-/reinstallations of Firefox. Unfortunately it did not help anything.

*******

Does anybody get more ideas? Thank you.
2010-08-30 13:11
tetrafeldGot it! I just remembered a useful hint from Utopia some months ago:

*******
I use the following shortcut to launch Firefox Supermode profile:
"C:\Program Files\Mozilla Firefox 3\firefox.exe" -p Supermode -no-remote

Replace "Supermode" with your profile name.
This should start Firefox without asking for profile.

*******