cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Get computer IPv4
Get computer IPv4
Mar 1, 2017 at 11:00pm UTC
TheScripterGeek
(28)
I would like to get the computers IPv4 as I am doing socket testing
All I want to do it:
std::string ipv4 = GetIpv4();
Then
addr.sin_addr.s_addr = inet_addr(ipv4.c_str());
Mar 3, 2017 at 10:02pm UTC
helios
(17511)
Do you mean on the Internet or on the local network?
Apr 17, 2017 at 7:07pm UTC
TheScripterGeek
(28)
For that computer, all it does is basically host it on that computer whenever I use the IPv4 because I want other computers on that network to access and send data, etc
Topic archived. No new replies allowed.