I'm trying to create a chat with sockets, but when I use the connect function, an error message is displayed, 'saying' that the ip address is not valid.
ip I'm using is: 177.64.42.142
But if I put a local ip address (192.168.1.102), the program works, but only on my network.
how can I use an internet ip address on sockets?
[sorry for my bad english]
ip I'm using is: 177.64.42.142
But if I put a local ip address (192.168.1.102), the program works, but only on my network.
how can I use an internet ip address on sockets?
[sorry for my bad english]