Click here to Skip to main content
15,886,422 members

Comments by Member 11351616 (Top 6 by date)

Member 11351616 4-Mar-16 7:33am View    
i get it connection failed with code 111:connection refused.
Member 11351616 4-Mar-16 6:11am View    
when i use the ip adress(different from localhost) and run the code,client doensn`t connect server.Just I am getting client socket created message on the terminal.Normally it has to be connection comfirmed and i can send message to server.
Member 11351616 4-Mar-16 5:59am View    
yes i am sure the ip address.
Member 11351616 4-Mar-16 5:56am View    
okey i got it.I will check it.Also server_addr.sin_addr.s_addr = inet_addr(IP); when i use the this code on the client.cpp , it does not work correctly. Can u check my code ? I am new C++, its my first codes.
Member 11351616 4-Mar-16 4:16am View    
The client and server has to be same wifi but different computers.So my client ip and server ip different.How can i connect server from client?