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
How to Fix an Accidental 'Sudo Bundle Install Dir_Name'
Command for Displaying a Gem's Dependencies
Rails ( Set_No_Cache Method) Cannot Disable Browser Caching in Safari and Opera
How to Model a Mutual Friendship in Rails
Is Regexp.Last_Match Thread Safe
Error in Celluloid Gem Installation
Using Phonegap as a Native Container for a Rails 3 App
Removing or Overriding an Activerecord Validation Added by a Superclass or Mixin
Ruby on Rails Source Code Security/Obfuscation
What Does "Temps.Each(&:Valid)" Mean in Ruby
Why Does .All? Return True on an Empty Array
Tcp Socket Communication Between Processes on Heroku Worker Dyno
Add Existing Classes into a Module
How to Extract a Single Character (As a String) from a Larger String in Ruby
Capistrano and API Keys in Env Variables