How to get the node ip which run the service?

Hello
I created a service in swarm mode, i want to get the node ip(maybe public ip in a cloud) which run this service,
Is there any command or api to get this?
Thanks