Mar 6, 2013 at 11:57am UTC
I need to create a client server program where the client gets the ip address of the server is connected to.
The server can be local or remote
its in c++ using visual studios
any help would be greatly appreciated
Last edited on
Mar 7, 2013 at 11:03am UTC
Mar 7, 2013 at 4:22pm UTC
Hello, says a little more detalles.....
Mar 8, 2013 at 2:40pm UTC
beginner123, The Problem you mentioned can be very easily done in JAVA, in C++ it would be detailed, But for client server based app i would prefer Java, So if you are interested in it (Its a few line self explanatory code). I can provide it to you.
Mar 9, 2013 at 10:10pm UTC
Look for WinSock2 tutorials. This should point you in the correct direction.
Mar 12, 2013 at 9:12am UTC
no its not homework. I am currently on work placement from college and this is my first job. I am unsure what to do so I asked for help.
I have actually solved this problem but now have another one:
I have never used MFC before and now I must created a client server program in MFC.
I have a list box and a button (this is the server). When the button is clicked i want all the client's ip addresses that have connected to the server displayed in the list box.
so the clients are waiting to connect to a server. when i click the button to search for clients, the clients connects and their ip addresses are displayed in the list box