Thanks everyone - and sorry for the delay...
I "think" I have a better understanding of the issue - but of course being completely new to VB - could be wrong!
At (my personal) home my Host, get s a 10.0.2.xxx private address.
I have port forwarded 127..0.0.1:1433 to 10.0.2.15:1433 - and so at home it works like a charm.
At work it gets a 192.168.x.x address.
The guest OS (seemingly) always gets a 10.0.2.15 address regardless - which places it (at work) in a different IP range.
So I think this is why I am not connecting to my SQL server when at work.
That's the information I have... not sure if it helps or not...
The network is set up for NAT.
Here is the ifconfig from the problematic host (at work);
Code: Select all
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
ether 10:dd:b1:a1:01:46
inet6 fe80::12dd:b1ff:fea1:146%en0 prefixlen 64 scopeid 0x4
inet 192.168.91.222 netmask 0xffffff00 broadcast 192.168.91.255
media: autoselect (1000baseT <full-duplex,flow-control>)
status: active
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 4c:8d:79:e4:c4:10
inet6 fe80::4e8d:79ff:fee4:c410%en1 prefixlen 64 scopeid 0x5
inet 192.168.91.233 netmask 0xffffff00 broadcast 192.168.91.255
media: autoselect
status: active
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 10:dd:b1:ff:fe:68:8a:7e
media: autoselect <full-duplex>
status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether 0e:8d:79:e4:c4:10
media: autoselect
status: inactive
Here is the IPconfig from the guest;
Code: Select all
Windows IP Configuration
Host Name . . . . . . . . . . . . : GavinBaumanis
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : internode.on.net
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : internode.on.net
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
Physical Address. . . . . . . . . : 08-00-27-E1-2D-7B
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::589d:385e:ddc7:cba5%11(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.2.15(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Wednesday, 3 July 2013 1:25:57 PM
Lease Expires . . . . . . . . . . : Thursday, 4 July 2013 1:25:57 PM
Default Gateway . . . . . . . . . : 10.0.2.2
DHCP Server . . . . . . . . . . . : 10.0.2.2
DHCPv6 IAID . . . . . . . . . . . : 235405351
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-59-0A-5D-08-00-27-E1-2D-7B
DNS Servers . . . . . . . . . . . : 192.168.91.253
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.internode.on.net:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : internode.on.net
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Local Area Connection* 11:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:953c:3892:3512:f5ff:fdf0(Preferred)
Link-local IPv6 Address . . . . . : fe80::3892:3512:f5ff:fdf0%12(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
I suppose what I need to know is how do I ensure that my host and guest are always on the same static LAN so that I can set an appropriate port forward rule?
Or is there a way to do this dynamically, so that it doesn't matter what IP Address the Host gets?
As always - thanks very much for your help - I do appreciate it.
Gavin.