|
-
May 4th, 1999, 03:55 PM
#1
How do I get the IP address of a Local System
I need to get the IP address of the System in C or C++
-
May 4th, 1999, 03:58 PM
#2
Re: How do I get the IP address of a Local System
-
May 4th, 1999, 04:36 PM
#3
Re: How do I get the IP address of a Local System
What the answer is yours... ???
I want a C code which gives the Ip address of a system!
-
May 4th, 1999, 07:12 PM
#4
Re: How do I get the IP address of a Local System
there is a dedicated address for local hosts and it's 127.0.0.1 not 128.0.0.1 as i've seen in the first reply. it's usualy used for tests. if you are looking for something about your computer not a simply IPaddress use 'getenv(<arg> ' where <arg> could be 'REMOTE_ADDR' (for your question) or some other enviroment variable. to find all specific enviroment variable for your computer just travers '_environ' which has 'char**' type.
use 'char** myEnv = _environ; while(*myEnv){ ...myEnv++} ' etc. ...
-
May 4th, 1999, 07:38 PM
#5
Re: How do I get the IP address of a Local System
I think he was referring to a perl CGI script.
Anarchos
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|