How to determine the current IP address
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I've got a VC++ program in which I need to determine the dotted-numeric IP address of the PC its running on. What's the best/simplest way to do this? Thanks for any ideas, Craig
Call
gethostname()
followed bygethostbyname()
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen