Hi, I have a question about TCP/IP connection using winsocket.
I wrote a simple client and server codes using winsocket and they work perfectly ok on the same computer. That is, I execute my server and then I execute my client on the same machine. And, they can exchange information and what not.
But, when I run my server on one machine and my client on another machine, they don't work. I have enabled the specific port I have used in both my codes in my internet connection. So, that can't be the problem. Do you have any suggestion?
I won't bother to write my codes here, because I don't think there's a problem with them.
Well. Here's what I did. I change my IP address to static and then accessed my router through 192.168.1.1 and then forwarded ports on my IP address. And it still won't work!!
Your machine has a unique address on the network which you must access. Your router itself actually has an address as well and this is not the address you want. For internal-network operations, you shouldn't need to forward ports (on your router, a soft firewall may be different). If your trying to connect to the computer on your network through the internet itself and not your home network, you will indeed need to forward ports.
I would also get something like Wireshark to monitor packets that are being received and sent to make sure its not the server that's not reacting correctly (or if your not receiving packets at all).
Hi nara i am a planning to write a code similar to this(Client/Server) and i think it would be grt if you could help me out. plz chk out my post, for further details send me message