Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.08 KB

external-access.md

File metadata and controls

77 lines (49 loc) · 1.08 KB

External access

xip.io method

Note

This is my favourite method, but I have sometimes received 'Connection refused' messages

I think some DNS servers are having trouble resolving xip.ip URLs, or the domain is blocked

An alternative similar service: nip.io

Network IP address

ipconfig getifaddr en0

Homestead config

Path: ~/.homestead/Homestead.yaml

Example:

- map: website.local
  to: /home/vagrant/Code/website

- map: website.192.168.5.42.xip.io
  to: /home/vagrant/Code/website

Update all IPs to new

Work in progress:

vi ~/.homestead/Homestead.yaml
:%s/(\d.)*\.xip\.io/192.168.5.42.xip.io/c

/etc/hosts

192.168.10.10 website.local
192.168.10.10 website.192.168.5.42.xip.io

Done

homestead provision

vagrant share method

Create an account

https://atlas.hashicorp.com/account/new

Login

vagrant login

Share

vagrant global-status
vagrant share {{id}}

Config

May need to be tweaked to listen for incoming URL and route to correct website