The Unix command traceroute traces the IP addresses of the nodes from a source node to a destination node. Every node in between has an incoming and an outgoing interface.

Executing traceroute -n dst on src will show the IP addresses of src, dst and all incoming interfaces of the hops in between.
But how to trace the outging IP addresses?
Update
I tried the ping -R suggestion but it does not seem to work. This is the traceroute to a public web server:
$ ping -n -c 1 -R 212.227.222.9
PING 212.227.222.9 (212.227.222.9) 56(124) bytes of data.
64 bytes from 212.227.222.9: icmp_req=1 ttl=57 time=47.4 ms
RR: 192.168.2.111
169.254.1.1
87.186.224.94
62.154.76.34
62.154.12.175
212.227.117.13
212.227.117.8
10.71.3.253
212.227.222.9
--- 212.227.222.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 47.441/47.441/47.441/0.000 ms
And this is the IP address of my dial-up connection.
$ curl -s https://toolbox.googleapps.com/apps/browserinfo/info/ | jq -r .remoteAddr 93.192.75.247
But it has not been recorded by the ping command. What can be the reason?


curl ifconfig.me. Simplest thing on the internet. Hands down. – Ryan Foley Oct 08 '14 at 20:06