send message on 'enter' and set the host name dynamically