Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to reconnect to the server when the ethernet cable unplugged and replugged using Socket

How to reconnect to the server when the ethernet cable unplugged and replugged using Socket

Scheduled Pinned Locked Moved C#
sysadminhelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    engsrini
    wrote on last edited by
    #1

    Hi I am developing a windows applicaiton which is a client and connected with a server(a 3rd party tool developed in Labview) thru TCP socket. Communication is ok but when i unplugg the ethernet, the server is still indicating the client is connected. when i replugg the ethernet cable in the client side, im have done shutdown, close of socket and trying to re-establish the connection. But i could not make the conncetion the Socket.Beginconnect throwing the exception. How to handle this situation.. can server detect the client availablity if the ethernet cable unplugged at client side? I can't modify that server code, Is it possible to do something at client side to reconnect it to server? I have tried Networkavailablitychange class, but no use.. Please post some sample code or links, that would be really help full please.. Thanks Srini

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups