CrazYmonkeY159
Expert Member
Hello all.
I am currently working on a mini project for Uni. Ive run into a little problem. Im currently coding a simple tcpserver application
I do not know how to obtain my PC's current IP (Ethernet, assume the PC only has 1 Network interface, if that makes a difference)
something like getting your IP from cmd->"ipconfig /all"
reasons for this being I want the program to display its own IP so that I can enter this IP into connecting clients.
If it matters, im using C++ in Windows using the Qt framework, after some googling it seems as if Qt has no such method of doing what Im looking for, any ideas people? thanks in advance
I am currently working on a mini project for Uni. Ive run into a little problem. Im currently coding a simple tcpserver application
I do not know how to obtain my PC's current IP (Ethernet, assume the PC only has 1 Network interface, if that makes a difference)
something like getting your IP from cmd->"ipconfig /all"
reasons for this being I want the program to display its own IP so that I can enter this IP into connecting clients.
If it matters, im using C++ in Windows using the Qt framework, after some googling it seems as if Qt has no such method of doing what Im looking for, any ideas people? thanks in advance