Connecting to remote ROS master

E.g. my IP is 192.168.0.19 (looked up by running ifconfig)
The IP of the machine running ROS master is 192.168.0.8.

On my machine:

export ROS_IP=192.168.0.19
export ROS_HOSTNAME=$ROS_IP
export ROS_MASTER_URI=http://192.168.0.8:11311

On the remote master:

export ROS_IP=192.168.0.8
export ROS_HOSTNAME=$ROS_IP
export ROS_MASTER_URI=http://192.168.0.8:11311

If I then run rostopic list, I should be able to list the remote ros topics.