93Views2Replies

Author Options:

i know the ip address of my friend .he is in another location,can i send any message to him through command ? Answered

i know the ip address of my friend .he is in another location,can i send any message to him through command

Tags:laptop

Discussions

0
None
akellyirl

6 years ago

Yes you can.
What the "message" is depends on the clients you're using (e.g. something commercial, or home made), and the protocols you want to use, e.g. UDP, TCPIP.
The main issue you face is that your friends computer is probably behind a router/firewall and only has a local IP address (i.e. 192.168....) that is not accesible form outside.
To make it accesible he needs to forward the relevant port on his router as described here : https://www.instructables.com/id/SMC-Port-Forwarding/
So if his IP external address is MY_IP and he dedicates port 25000 to communication with you then you can contact your friend at MY_IP:25000 once his router forwards that port to his local machine.

0
None
Vyger

6 years ago

I believe you would have to set up a VPN ( virtual private network). That way as far as your computers know you are both on the same network.