homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Microsoft / (deprecated) Microsoft Windows OS (XP/NT/Vista)
Forum Library, Charter, Moderators: bill

(deprecated) Microsoft Windows OS (XP/NT/Vista) Forum

    
Ad Hoc Connection restart
Internet keeps dropping out
Rhys




msg:4084590
 5:59 am on Feb 22, 2010 (gmt 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?

 

Rhys




msg:4087444
 11:00 pm on Feb 25, 2010 (gmt 0)

"Bump"

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

;-) - Rhys

bill




msg:4087605
 5:29 am on Feb 26, 2010 (gmt 0)

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.

Rhys




msg:4087708
 9:46 am on Feb 26, 2010 (gmt 0)

Thanks Bill, I guess the wording was too limiting?

How about:

How can I auto-restart a dropped AdHoc connection?

kaled




msg:4087947
 5:43 pm on Feb 26, 2010 (gmt 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.

Rhys




msg:4088122
 11:03 pm on Feb 26, 2010 (gmt 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

bill




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

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.

kaled




msg:4088381
 12:20 pm on Feb 27, 2010 (gmt 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.

Rhys




msg:4089119
 7:07 am on Mar 1, 2010 (gmt 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.

Rhys




msg:4090311
 10:54 pm on Mar 2, 2010 (gmt 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"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / (deprecated) Microsoft Windows OS (XP/NT/Vista)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved