Welcome to WebmasterWorld Guest from 54.146.5.196

Forum Moderators: bill

Message Too Old, No Replies

Ad Hoc Connection restart

Internet keeps dropping out

     
5:59 am on Feb 22, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts: 130
votes: 0


Hi -
I'm running a laptop and a pc with shared internet from a USB modem over adhoc connections on W7 and it all works splendidly, EXCEPT, that sometimes the adhoc connection drops out.

I start it using a batch file in "Startup" set to:
C:\Windows\System32\netsh.exe wlan connect name=AdHoc ssid=AdHoc interface="Wireless Network Connection"

Is there a way to run this script using a DUN instead of a batch file so that it will auto-restart when it drops out?
11:00 pm on Feb 25, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts:130
votes: 0


"Bump"

Is this question in the wrong place? or is it just too boring to bother with?

;-) - Rhys
5:29 am on Feb 26, 2010 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14966
votes: 125


I guess nobody knows how to run your script using a DUN instead of a batch file. I did look around, but couldn't find anything.
9:46 am on Feb 26, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts: 130
votes: 0


Thanks Bill, I guess the wording was too limiting?

How about:

How can I auto-restart a dropped AdHoc connection?
5:43 pm on Feb 26, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


I looked at this but could find nothing to help. However, as a general point, using abbreviations such as DUN doesn't help to illicit replies - my best guess was dial-up-network (which doesn't seem to make sense but I suppose there are similarities).

I briefly played with setting up an ad-hoc network a while back but did not pursue it - have you checked if there is an auto-reconnect option hiding under an advanced settings page?

In order to auto-run a script for this purpose, you must first be able to detect that the connection has dropped out. That requires a monitoring program or an event-triggered approach. Is this the part you need help with?

Kaled.
11:03 pm on Feb 26, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts:130
votes: 0


Thank you Kaled for your interest. The reason I want to do this using Dial Up Networking is that there is provision in there to detect dropped connections, and to re-connect.

I was hoping the answer lay in something fairly simple like using the Internet connection wizard, but adding in the nstsh connection script (see above) at some point - something like using an adsl connection where there is no phone number, but code like *99## instead.

Unfortunately I am using Windows 7 which tries to do everything for you and doesn't have places where you can add in stuff like XP used to have.

Rhys
2:39 am on Feb 27, 2010 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14966
votes: 125


Dialup Networking is using different hardware isn't it? I always thought that was setup through your phone modem, not your Ethernet or wireless connection. I haven't setup dialup in years, so I may be a bit rusty.
12:20 pm on Feb 27, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


Assuming your USB modem has an ethernet connection (most do) then the simplest solution is to order a wireless router. I use a TP-link model - they're inexpensive and mine has worked faultlessly for two years.

This has the advantage that the sharing computer can be switched off when not in use. In the first year, this might save enough electricity to pay for the router. It also includes a hardware firewall (useful, but maybe not the best).

Kaled.
7:07 am on Mar 1, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts:130
votes: 0


@Kaled, I already have a router, G604T DLINK, but it has no USB slot, hence the search for an AdHoc solution.

Have just got it to work using the G604 as a router, and the main PC as the internet connection. Will post the settings if I can duplicate what I did.
10:54 pm on Mar 2, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2001
posts: 130
votes: 0


Problem Solved! :)

Found a way to use an old ADSL DLINK router with the USB modem (3G stick + Internet Connection Sharing + Windows 7).

1. Set up ICS on the computer with the USB stick. Share it. (ICS Default = 192.168.0.1 and 255.255.255.0)

2. Set up the router with DHCP and NAT disabled and a fixed IP in the same range, like 192.168.0.99 and the mask 255.255.255.0

3. Connect the rest of your household computers to the router network.

Tip: Set the "Default Gateways" to the router IP (192.168.0.99) to avoid the network showing up as an "Unidentified Network"
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members