HighTechTalks DotNet Forums  

WAN + LAN remoting autodial

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss WAN + LAN remoting autodial in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Matthew Murfin
 
Posts: n/a

Default WAN + LAN remoting autodial - 07-12-2004 , 02:19 PM






I have an C# .NET remoting app/server that is sometimes inside the domain on LAN and sometimes outside on WAN. 1) I would like to
easily detect the IP connection status (See footer notes).
2) I think I would like to be able to pop up the standard Internet Auto-Connect dialog IFF no connection is detected (i.e. remote
connect times out, or actual IP connection status check). It seems that this will be unmanaged code as I haven't found any
framework help in my searching, just the various RAS, WSOCK, etc apis.

I was half hoping that just setting up internet networking to auto-dial when necc would pop up the connect dialog when I tried to
open up my TCPIP channel and there was not a detected network connection (Yes... I'm gullable and a bit lazy).

Q: Has anyone done something similar or have another approach or ideas on auto detect and connect LAN/WAN?

--
Thank you,

Matt MurfinSimmons
Selectron Technologies Inc
mmurfinsimmons (AT) stigov_RMVTHIS_ (DOT) com

/***********************************/
Some notes:
/***********************************/
using System.Runtime.InteropServices;

[DllImport("sensapi.dll" ) ]
public static extern bool IsNetworkAlive( out int flags );
...
int flags;
if( IsNetworkAlive( out flags ) )
Console.WriteLine( "Network connected, flags:{0}", flags );
else
Console.WriteLine( "Network NOT connected!" );



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.