In the "last" command in Linux by default it will show the information with the hostname (not very useful at all especially since it normally truncates long hostnames).
To get last to show the IP address use this:
last -i
The -i makes it show the numeric IP instead of hostname.
linux, login, ip, hostnamein, quot, default, hostname, truncates, hostnames, numeric,