1 | initial version |
The short answer is: it is not possible.
The long answer is: in certain scenarios it might be possible. But in that case you need to know if your communication is server based (email) or direct communication (some messengers), if you are using IPv4 and/or IPv6, if you are connected to the same logical network, etc.
So with the information you have given, it is probably not possible.
You might ask your friend for the MAC address of his device. If you know that, you might have a chance to determine his IP address.