SQL Server - How connect to Guest SQL server on Virtual Box from Host via SSMS
I want to connect to SQL server on VirtualBox VM from Host machine via SSMS and .NET code. Details are as follows
Host: Window 10 Professional
Virtual Box Ver.:5.2.8 r121009 (Qt5.6.2)
Guest: Window 7 Professional(Firewall down)
Network:
Host:Asus Router- DHCP
Guest: Currently on NAT
Each time i try to connect from Host, it fails.
SQL Configuration is as follows,
Services
Protocol
TCPIP Properties
Please help.
thank you
Dheeraj Kumar
Solution
I solved it, do below steps
Go to Virtual Box application on Host machine
Now go to settings for Virtual machine
Change Attached To: Bridged Adapter
Now this step is tricky, you may need to choose/try different option here,
select one try to run VM and see if it gets the IP address, if not choose
another and try again