x404.co.uk
http://www.x404.co.uk/forum/

Quick Question
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=10413
Page 1 of 1

Author:  Fogmeister [ Mon Sep 06, 2010 3:19 pm ]
Post subject:  Quick Question

Hi All,

I'm looking for a way to get the IP Address from the user's computer.

It will be run from the client software on the user's computer and I can either do it through dos commands or through dll functions.

Initially I was doing it as a dos command output to C:\ipaddress.txt and then parsing the output and then deleting the file.

It worked perfectly until I found out the users don't have access to the root of C.

Then I used a USER32.DLL function to access the My Documents folder of the user. Except the dos commands run from our cr*ppy software don't do spaces in text. (I have tried with quotes but still no).

Was wondering if there's a dll function (or anything else) that you can think of that will allow me to get the computer's ip address.

TVM!

Author:  Fogmeister [ Mon Sep 06, 2010 3:46 pm ]
Post subject:  Re: Quick Question

NVM.

Found it in wsock32.dll

Thanks

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/