Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I know if a Class has an instance object in Computer's memory ? Pin
S. Senthil Kumar25-Sep-05 4:28
S. Senthil Kumar25-Sep-05 4:28 
GeneralRe: How can I know if a Class has an instance object in Computer's memory ? Pin
mav.northwind25-Sep-05 20:09
mav.northwind25-Sep-05 20:09 
QuestionWord doc in Web Browser Control Pin
mirano25-Sep-05 0:28
mirano25-Sep-05 0:28 
AnswerRe: Word doc in Web Browser Control Pin
Anonymous25-Sep-05 23:52
Anonymous25-Sep-05 23:52 
Questioncache question Pin
snouto24-Sep-05 16:58
snouto24-Sep-05 16:58 
AnswerRe: cache question Pin
Dave Kreskowiak24-Sep-05 18:34
mveDave Kreskowiak24-Sep-05 18:34 
AnswerRe: cache question Pin
Daniel Grunwald24-Sep-05 21:52
Daniel Grunwald24-Sep-05 21:52 
Questionchecking LAN connectivity Pin
g00fyman24-Sep-05 16:19
g00fyman24-Sep-05 16:19 
hi to all,

as part of my apps startup i would like to test for local LAN connectivity as it uses tcp protocol for remoting, this can obviously also include a VPN.
i would like to test for tcp connectivity, so i tried this to my server which i know responds to ping and i get FAIL.

is this the best way or can i check the network adapter instead, also the app may be run as a user who does not have priveleges to start stop services etc.,

can anyone please help?

kind regards,
g00fy

<br />
internal void CheckLANConnectivity()<br />
    {<br />
      this.initLabel.Text = "Checking Network Connectivity ... ";<br />
      this.Refresh();<br />
<br />
      try<br />
      {<br />
        TcpClient client = new TcpClient();<br />
        client.Connect("10.0.0.1", 7);<br />
        this.initLabel.Text = "Network Connectivity ... PASS ";<br />
      }<br />
      catch<br />
      {<br />
        this.initLabel.Text = "Network Connectivity ... FAIL ";<br />
      }<br />
    }<br />

AnswerRe: checking LAN connectivity Pin
mav.northwind24-Sep-05 20:38
mav.northwind24-Sep-05 20:38 
GeneralRe: checking LAN connectivity Pin
g00fyman24-Sep-05 20:48
g00fyman24-Sep-05 20:48 
GeneralRe: checking LAN connectivity Pin
g00fyman24-Sep-05 21:33
g00fyman24-Sep-05 21:33 
GeneralRe: checking LAN connectivity Pin
mav.northwind25-Sep-05 19:58
mav.northwind25-Sep-05 19:58 
GeneralRe: checking LAN connectivity Pin
g00fyman25-Sep-05 21:17
g00fyman25-Sep-05 21:17 
QuestionCheck Box Pin
Anonymous24-Sep-05 16:17
Anonymous24-Sep-05 16:17 
AnswerRe: Check Box Pin
miah alom25-Sep-05 7:11
miah alom25-Sep-05 7:11 
QuestionProblem in Code : SEE COMMENT** Pin
Anonymous24-Sep-05 16:13
Anonymous24-Sep-05 16:13 
AnswerRe: Problem in Code : SEE COMMENT** Pin
Guffa24-Sep-05 22:00
Guffa24-Sep-05 22:00 
QuestionControl Array Pin
StephenMcAllister24-Sep-05 10:49
StephenMcAllister24-Sep-05 10:49 
AnswerRe: Control Array Pin
Daniel Grunwald24-Sep-05 21:34
Daniel Grunwald24-Sep-05 21:34 
GeneralRe: Control Array Pin
StephenMcAllister24-Sep-05 21:57
StephenMcAllister24-Sep-05 21:57 
Questionxml node problem Pin
thepersonof24-Sep-05 8:48
thepersonof24-Sep-05 8:48 
AnswerRe: xml node problem Pin
Guffa24-Sep-05 12:27
Guffa24-Sep-05 12:27 
QuestionApplication Domains Pin
Tomas Brennan24-Sep-05 4:41
Tomas Brennan24-Sep-05 4:41 
AnswerRe: Application Domains Pin
Nick Parker24-Sep-05 9:05
protectorNick Parker24-Sep-05 9:05 
GeneralRe: Application Domains Pin
Tomas Brennan25-Sep-05 5:38
Tomas Brennan25-Sep-05 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.