utapyngo / icsmanager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small Change to GetIPv4EthernetAndWirelessInterfaces

vekool opened this issue · comments

Just add

nic.NetworkInterfaceType == NetworkInterfaceType.Ppp

This will enable people to share / unshare their 3G modems as well.

Thank you for your feedback. Since you are familiar with the code, you could do it yourself. Pull requests are welcome.

When I am trying to enable ICS option I am getting the error as in the picture. Could you please help me?
ics

Are you running this command as an administrator?
Are your NICs named "NIC 1" and "NIC 2"?
The "force" parameter is optional (that's what the square brackets mean), you can omit it, or use without brackets.
If the problem persists, try to run regsvr32 hnetcfg.dll as administrator manually.

You should have created a separate issue for this.

Yes I ran it with admin privilege. I renamed network ports to "NIC 1" & "NIC 2". I had tried without the [force] parameter too. I registered "hnetcfg.dll" by using regsvr32.
Side Note: I have tried this after fresh installation of OS & renaming the network ports. If we enable ICS option once by manually then the exception does not occur and works fine!!!