NetTalk Central
The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Matthew51 on July 14, 2022, 03:05:28 PM
-
NT 12.39
I'm using Amazon web services that disables all notwork broadcasts, even if the VMs are on the same subnet. I get around this by getting a list of IP addresses from the amazon api and calling NetAutoRemote for each of them.
This works fine when I manually create new VM from scratch. However I'd like to create an image of one VM and use that to create others that are already set up and configured. When I try this the NetClients get confused and can't tell each other apart. I tried having amazon change the computer name in windows when a VM is created to give them a unique NetName, but that didn't work. It looks like they are all getting the same NetID. I can't see how the NetID is created as that is happening inside the DLL, so I don't know what if anything I need to change to make the NetIDs unique.
This confusion even crosses Service Names, so I had to create a fire wall between my test VMs and the production ones.
Is their anything I can do to influence the NetID? And is that even the root of my problem?
Thanks
Matthew
-
Just checking to make sure this didn't get forgotten. Did I explain everything clear enough?
Thank Matthew
-
I'm not sure that it _is_ the root of your problem, but you can set the NetName using NetOptions early.
https://www.capesoft.com/docs/NetTalk12/NetTalkUtilityFunctions.htm#NetOptions
see NET:SETNETNAME
you can also use it to read the NetId
NET:GETNETID
Net:AutoIDType is declared in NetAll.Inc
The NetId is stored in the registry once it is created, and created (using random values) if it is not there. So on the VM you use as the "source" for your clones, you should remove these registry items.
HKEY_LOCAL_MACHINE\Software\CapeSoft\NetTalk\GUID
cheers
Bruce
-
The NetId is stored in the registry once it is created, and created (using random values) if it is not there. So on the VM you use as the "source" for your clones, you should remove these registry items.
HKEY_LOCAL_MACHINE\Software\CapeSoft\NetTalk\GUID
This worked, though I found it under HKEY_CURRENT_USER. I'll have to add that to the list of things to check when making a new template.
Thank You Matthew