Connecting Laravel from vagrant to host MSSQL express

116 Views Asked by At

I have Laravel on a vagrant box trying to connect to the hosts MSSQL. For the life of me cannot seem to establish a connection.

How do I determine the host's IP for MSSQL?

1

There are 1 best solutions below

0
On BEST ANSWER

The host machine can be accessed through the "Guest Additions" package. You can identify the IP of the Host by running netstat -rn.

Through the list, find what is most likely 0.0.0.0 and use the associated Gateway IP which is probably 192.168.1.1.