Cannot Assign Requested Address - Bind(2) (Errno::Eaddrnotavail)

Puma Error: Cannot assign requested address - bind(2) for 10.0.2.2 port 3000 (Errno::EADDRNOTAVAIL)

Seems like you have 10.0.2.2 in your localhosts.

You can check it in /etc/hosts.

It may look like

...
127.0.0.1 localhost
10.0.2.2 localhost
...

If you don't need 10.0.2.2 here and you don't know why you got it (your case =)) you can remove this line and try to run rails s again.

Maybe you would have to restart your network system or you can reboot.

Another way would be running rails server on particular host like

rails s -b 127.0.0.1

I don't know exact reasons of the problem but I hope it helps you somehow.

nodejs: Error: EADDRNOTAVAIL, Cannot assign requested address

On 172.16.1.224 you cannot listen on 172.16.1.218 because that's not the IP of the machine you're listening on.

If you want to listen on that machine, use:

server.listen(6001,"172.16.1.224");

Rails, Webpacker, and Docker : Cannot assign requested address - connect(2) for [::1]:3035

You need set the --listen-host value that gets passed to webpack-dev-server.

You can achieve this by editing the file config/webpacker.yml and changing the development:dev_server:host: value from localhost to 0.0.0.0, that should solve the problem.

ruby cannot assign requested address

You are making a server or client?

you used nc, so i guess you are making client.

server is bind

client is connect:

c = UDPSocket.new

c.connect("127.0.0.1", 1111)

"address is not available" usually as the port is used.

or you can ping the address fisrt to check if the address can be reached



Related Topics



Leave a reply



Submit