I Want to send a message to a remote Android using socket programming ..Whether it’s possible? Whether they can have different IP addresses? or Whether they need to have the same IP address?
I read the below article..It says that “the port numbers have to be the same in addition to the IP address”
My server is 121.xxx.xxx.xxx
My client is 122.xxx.xxx.xxx
And server and client are androids ..Whether I will be able to send the messages from server to client? without any intermediate server??
Yes, you can open up server sockets in Java (Dalvik). If you want a client to communicate with the server the client needs to know the server’s address. That’s what the article is trying to say with “the port numbers have to be the same in addition to the IP address”.