tomcat7 - java.net.BindException: Cannot assign requested address -


i want use low port in application (snmp trap receiver on spring web + tomcat7). told in thread binding low port java program on ubuntu server, before, got error permission denied. change tomcat7 user group root. after that, got java.net.bindexception: cannot assign requested address error. every port try (low or high port), got error.

i check if port has used, see port still free. check /etc/host content, this:

127.0.0.1 localhost  127.0.1.1 test-server  # following lines desirable ipv6 capable hosts  ::1 localhost ip6-localhost ip6-loopback  ff02::1 ip6-allnodes  ff02::2 ip6-allrouters  124.81.xx.x test-server.com 

note: os ubuntu server

you should bind 0.0.0.0 instead of trying specify local-address.


Comments