Internet Connection Sharing / General Questions / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2015-05-14 12:15

kgolding
Member
Registered: 2015-05-14
Posts: 2

Internet Connection Sharing

Hello,

I'd like to create a profile that used my laptop's WIFI for WAN access, and then enabled ICS on the Ethernet wired port (DHCP server).

I can't see how to do this and having searched the forum's I've only found one possible workaround that dates back many years so I'm hoping there's an easier way to do it on Windows 7?

Kevin

Offline

#2 2015-05-14 13:30

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Internet Connection Sharing

I'm afraid, changing the Internet Connection Sharing option still isn't available in NetSetMan at the moment. We've been focusing on many other new features that were frequently requested. In contrast this is only the second request for ICS. We still do think that this feature is useful in some scenarios and in fact have worked out a concept for a new "network sharing" section where this would be included but unfortunately we don't have a release date for this, yet.

Offline

#3 2015-05-14 13:42

kgolding
Member
Registered: 2015-05-14
Posts: 2

Re: Internet Connection Sharing

Thank you for the reply. I'm happy to alpha/beta test if you do have something in the pipe.

Alternatively, and indeed even better, what about building a simple DHCP Server into NetSetMan as an option?

Offline

#4 2015-05-15 14:32

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Internet Connection Sharing

Thank you for your willingness to test the feature as soon as it's available. I've made a note for that. If required we'll contact you.
Including any kind of server functionality would go beyond the intention of the software to switch between settings in profiles...

Offline

#5 2015-08-19 01:27

gautxori
Member
Registered: 2015-08-19
Posts: 3

Re: Internet Connection Sharing

I'd second both of kgolding's requests:
- ICS feature might be replaced by a working configuration of NAT / DHCP ( /RIP / ARP / ...) services.
- DHCP ( / ...) services can be configured with "netsh" command line tools. I bet it can also be "easily" done by calling API functions.

----
The solution i suggested needs a deep review. I think some scripting might be more useful, using the HNetCfg.HNetShare.1 COM object: try this VBscript, which has one parameter: the name of the connection to be shared.

set NetSharingManager = Wscript.CreateObject("HNetCfg.HNetShare.1")
strConnName = WScript.Arguments(0)

For Each oConnection In NetSharingManager.EnumEveryConnection
	Set EveryConnection = NetSharingManager.INetSharingConfigurationForINetConnection (oConnection)
	Set objNCProps = NetSharingManager.NetConnectionProps (oConnection)
	If objNCProps.Name = strConnName Then
		If EveryConnection.SharingEnabled Then
			EveryConnection.DisableSharing
		Else
			EveryConnection.EnableSharing (0)
		End If
	End if
Next

further reference in https://msdn.microsoft.com/en-us/librar … 85%29.aspx and gOOgle.
----

For beta-testing any 'unstable' version, a note in the forum's "development notes" might help all of us. Anyway, NetSetMan might be improved but it rocks as it is.

(What about pinning interesting topics?)

cheers.

Last edited by gautxori (2015-08-28 21:19)

Offline

#6 2015-08-20 10:22

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Internet Connection Sharing

Great! Thanks for that detailed instruction.
I'm sure there are users with the same requirements who'll be happy to find your solution.

Offline