Really cool, the setup I have done in the past with a wired connection and developer tools on safari for iphone and safari for mac is not ideal. This is a better any platform any browser solution for localhost. 💯
To see the site on the phone, I just changed the ip in the /config/dev.ex to: http: [ip: {0, 0, 0, 0 }, port: 4000], Then I discover my ip in the LAN with the terminal. On Linux I use this command: ip a On windows will be ipconfig. Run the server with mix phx.server And use this ip with the port to access on the phone like 192.168.0.5:4000 I hope this helps someone.
Really cool, the setup I have done in the past with a wired connection and developer tools on safari for iphone and safari for mac is not ideal.
This is a better any platform any browser solution for localhost. 💯
For sure. You can definitely do this by hand, but this is so much easier!
Hell yeah!
Let's gooooo
Who knew Kanye could code
To see the site on the phone, I just changed the ip in the /config/dev.ex to:
http: [ip: {0, 0, 0, 0 }, port: 4000],
Then I discover my ip in the LAN with the terminal. On Linux I use this command:
ip a
On windows will be ipconfig.
Run the server with mix phx.server
And use this ip with the port to access on the phone like
192.168.0.5:4000
I hope this helps someone.
boom!