Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - pulling pocketpc2002 ip -- (DHCP ISSUE???)

pulling pocketpc2002 ip -- (DHCP ISSUE???)

Discuss PocketC for CE (including Desktop Edition)

Postby ff2147087 on Tue Feb 25, 2003 5:11 pm

I'm running on PocketPC2002 with SA1110 chip... I've developed an small piece of code on evb to get the machine IP using
Buff = WinSock1.LocalIP
Cnt = Cnt + 1
LatestIP.Text = Cnt
LatestIP.Text = LatestIP.Text + ">" + Buff

in very 15-30 or 40 seconds(its up to the user)... now I roam between one wlan to another but it takes a long time (between 3-4mins) for the ip to get refreshed... I tried the same thing on the laptop and it immediatly switches its ip (through command prompt though) ... I even shut down my app on the pocketpc and did ipconfig on pocketCMD (command prompt) and reach the same result takes long time to refres the ip....
is this something in pocketPC configuration... cuz I read in the help file of evb that apparently the device contains sort of DHCP that in background look for the valid DHCP server every 5mins... and I'm wondering if that is the reason... meaning that although I'm doing ipconfig but it gets the IP from device DHCP and DHCP only refreshes every 5mins...
could somebody please help me... is there a way of overwriting DHCP refresh time??? can I force DHCP to refresh itself within the application (either through evb or evc)?? if so could you please give me a sample function call to use??

bellow is from microsoft help file
"For a device running Windows CE 3.0, if this attempt to locate a DHCP server fails, the DHCP client will autoconfigure the stack with a selected IP address from the Microsoft-reserved class B network 169.254.0.0. with the subnet mask 255.255.0.0. The DHCP client will test (using a gratuitous ARP) to make sure that the IP address it has chosen is not already in use. If it is in use, it will select another IP address (it will do this for up to 10 addresses). Once the DHCP client has selected an address that is verifiably not in use, it will configure the interface with this address. It will continue to check for a DHCP server in the background every 5 minutes, and if a DHCP server is found then the autoconfiguration information is abandoned and the configuration offered by the DHCP server is used instead."

I thank you for your help
ff2147087
 
Posts: 5
Joined: Fri Feb 21, 2003 10:53 pm

Postby wolfgang on Wed Feb 26, 2003 2:58 am

Hi,

just to save you some frustration about posts not being answered (and without the slightest intention to be unfriendly!): I'm afraid you are on the wrong webboard. This one is of PocketC, which has nothing to do with EVC except for the fact that both are used to program for WindowsCE. PocketC is a small, C-like language for very easy programming, unfortunately it's developer hast lost interest in it and is no longer supporting it.

Wolfgang


Composing music on the PocketPC! - http://www.pdamusician.com
Composing music on the PocketPC! - http://www.pdamusician.com
wolfgang
 
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Postby guy on Wed Feb 26, 2003 11:31 am

I'm afraid that I have to agree that this is somewhat out of scope here.

Personally I've found that the best way to avoid problems caused by DHCP is to not use it. Nail all of your machines down and give them IP addresses yourself. Simplifies the DNS, stops things changing identity, gives you more control with your firewalls and proxys and increases security.

If you want to follow this one up some more then the best bet is probably one of the Microsoft newsgroups, or do a search on Google groups perhaps.


Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Postby ff2147087 on Wed Feb 26, 2003 3:30 pm

Thank you for your replies and help that you have provide me with so far...
:D
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by guy</i>
<br />I'm afraid that I have to agree that this is somewhat out of scope here.

Personally I've found that the best way to avoid problems caused by DHCP is to not use it. Nail all of your machines down and give them IP addresses yourself. Simplifies the DNS, stops things changing identity, gives you more control with your firewalls and proxys and increases security.

If you want to follow this one up some more then the best bet is probably one of the Microsoft newsgroups, or do a search on Google groups perhaps.


Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum

<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
ff2147087
 
Posts: 5
Joined: Fri Feb 21, 2003 10:53 pm


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 3 guests

cron