[Sorry for the cross-post; just trying to get this answered somehow]
Our scenario is that we basically have a network of communicating
devices.
Any one of these devices can, at any time later, have a host attach,
where
"attaching" a host involves connecting USB to the device such that the
RNDIS virtual adapters appear on both the host and device, as expected.
We use ICS and NAT to allow the host to communicate with the device
network.
Through much trial, I have found that this all works if we 'hardcode'
the IP address for the
static mapping thusly:
[HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\Servers\Service]
"InternalName"="
192.168.5.1" ; or something thereabouts
"InternalPort"=dword:xxx ;
"IsEnabled"=dword:1
"Port"=dword:xxx ;
"Protocol"="UDP" ; or "TCP"