There is a bug in /etc/hosts. Your hostname is NO alias of 127.0.0.1. Only "localhost" is an alias for the loopback. When an application want to know your ip adresss, it will get 127.0.0.1. But this is not your ip adress in your local network!
This is not right:
127.0.0.1 localhost HOSTNAME
127.0.1.1 HOSTNAME
There is a bug in /etc/hosts. Your hostname is NO alias of 127.0.0.1. Only "localhost" is an alias for the loopback. When an application want to know your ip adresss, it will get 127.0.0.1. But this is not your ip adress in your local network!
This is not right:
127.0.0.1 localhost HOSTNAME
127.0.1.1 HOSTNAME
I'd deleted HOSTNAME to get my application work.