I am new to socket programming and have just started coding with Boost's Asio library. What my program intends to do is send the message "Hello World!" from the server to the client but server doesn't accept client connections and therefore the client isn't able to make a connection. I have a feeling the problem is on the server's side. Here is the code:
So on the server, the program is stuck at acceptor.accept(socket) and I can't figure out why. I've been searching hours on how to solve this so now I'm going asking on this forum. I made sure that port 995 was forwarded correctly.
was just a generic variable name for the string representation of the ip address. Thanks for the response. I found the problem of the issue eventually and it did indeed have something to do with the address not being resolved correctly. It seemed that the local ip address has to be used for the server application and the also the client if on the same computer. But the WAN address is to be used on all other computers.