README.md in buschtelefon-0.4.0 vs README.md in buschtelefon-0.4.1
- old
+ new
@@ -36,12 +36,12 @@
```ruby
require 'buschtelefon'
include Buschtelefon
-aunt_may = NetTattler.new
-aunt_ruth = NetTattler.new
+aunt_may = NetTattler.new(host: '127.0.0.1')
+aunt_ruth = NetTattler.new(host: '127.0.0.1')
remote_aunt_ruth = RemoteTattler.new(host: '127.0.0.1', port: aunt_ruth.port)
aunt_may.connect(remote_aunt_ruth)
Thread.new { aunt_may.listen }
@@ -50,9 +50,12 @@
aunt_may.feed(Gossip.new('Did you hear about the cool company "Renuo"?'))
puts aunt_may.knowledge
puts aunt_ruth.knowledge
```
+
+**Comfortability hint:** Be aware that `NetTattler` binds itself to `127.0.0.1` per default.
+Use `NetTattler.new(host: '0.0.0.0')` to bind it on all interfaces.
## Development
After checking out the repo, run `bin/setup` to install dependencies.
Then, run `bin/check` to run the tests. You can also run `bin/console`