PDA

Click to See Complete Forum and Search --> : Get user IP Address in eVB


longwar
May 8th, 2006, 10:54 PM
hi all
i am currently working on a pocket pc project. would like to find out how am i work about the coding to obtain the pocket pc user IP address. pls help by showing me the code. thks in advance

longwar

petevick
May 9th, 2006, 01:26 AM
Hi,
drop a winsock control on the form, and check the localip property.

That will give you your IP Address

Pete

longwar
May 9th, 2006, 01:29 AM
errr .... i am quite a novice to eVB ... do u mind to explain it step by step or showing me the code? i really have no idea how to do it. sorry for troubling u again.

petevick
May 9th, 2006, 02:38 PM
Hi,
simply add a winsock control to your form. It is not in the toolbar, but can be added as a control.

When you run your app, the property winsock1.localip (if i remember correctly), will contain your IP address

If you look on www.devbuzz.com, there are several articles I wrote about eVB and the Winsock control

HTH

Pete

longwar
May 9th, 2006, 09:55 PM
hi. thks petevick. now i got what u mean. thks very much for ur help. :)