Posts

Showing posts from February, 2020

java.net.BindException: Cannot assign requested address (Bind failed)

java.net.BindException: Cannot assign requested address (Bind failed)         at java.net.PlainSocketImpl.socketBind(Native Method)         at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)         at java.net.ServerSocket.bind(ServerSocket.java:375)         at com.samsung.nms.simulator.tl1.server.ssh.TL1SshServer$ConnectionListener.run(TL1SshServer.java:577)         at java.lang.Thread.run(Thread.java:748) netstat  didnt list any open port,  lsof -i TCP:<myport> no other process had opened myport. Solution : the process which binds the port, was started by non root user, starting the process as root user solved the problem