I'm using C++ and I'm trying to find the easiest way to get my local computer's IP address / subnet mask. Currently, my network has a subnet mask of 255.255.255.0 and the IP address is 192.168.0.5. I have to get these two values programmatically so I can send a broadcast message to my network. What would be the best way to do this?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!