adrian
I’m setting up a project using nerves and phoenix in a Raspberry Pi 3. I’m using nerves_init_gadget and I have this configuration:
config :nerves_init_gadget,
ifname: "wlan0",
address_method: :dhcp,
mdns_domain: "nerves.local",
node_name: "test_app",
node_host: :mdns_domain,
ssh_console_port: 22
I’ve being able to deploy, and the app is accessible on the device ip, but I can’t resolve nerves.local
I can’t figure out how this works from the mdns docs.
Should I do something on the router?
my resolv.conf contains the gateway nameserver: 192.168.1.1
Thanks!
Trending in Questions
Hello everyone!
I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++.
Does anyone ...
New
I’m very new to Elixir, so sorry if this is a silly question:
I am wondering what happens to the mailbox of a process when the machine i...
New
How do I tell Hologram not to escape HTML when substituting into templates?
{Textile.render(@product.long_description)}
escapes the HTM...
New
Background
When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error:
* assembling mark...
New
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex











Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
tmecklem
Hi Adrián!
nerves_init_gadget is most useful for projects on gadget capable hardware like the Raspberry Pi Zero. The Pi 3 can’t do gadget mode, which would give you the networking over usb that I think you may be expecting.
Can you describe a little more about your project setup? Namely, what’s your host OS and how are you networking the two devices together? If it’s over WiFi, there may be some additional things your DNS server or host OS need in order for mdns to work so it’s delpful to know more context.
adrian
Hi @tmecklem, thanks for your answer!
understood about nerves_init_gadget, I used it because it set up all the network and mdnds. Do you recommend me to use those packages instead of nerves_init_gadget?
My test setup is using wifi, but I haven’t decided yet if on production will be via wifi or ethernet. Probably a mix of them depending on my customer’s networks.
My host OS is ArchLinux, the host is connected via ethernet, and the Raspberry Pi over wifi as I mentioned.
My idea is to connect the device in my customer’s location and ask use mdnds to setup a hostname like: http://myapp for using it. I’d need to know what changes I need on the router or the hosts. For my customers I could have windows, macOS and Linux hosts.
Thanks a lot!
ConnorRigby
I use a very similar config, and i get mdns on my rpi3 via wifi, and i also run arch linux. Have you tried getting Mdns working before this? I found i had to change a few configurations and install a few packages to get mdns to work.
adrian
I didn’t know I had to install some packages in order to make it work, thanks!
I followed these instructions and it worked: Avahi - ArchWiki
I have other questions though.
http://nerves.local works on the host, but not on android phones
If I want to use GitHub - rosetta-home/mdns: basic mdns server and discovery client · GitHub (and forget about nerves_init_gadget), the docs says:
but where? I can’t find an example of how to use it.
ssh nerves.local. Is it possible to access the started mddns server thatnerves_init_gadgetstarted?Thanks!