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 / C++ / MFC
  4. Socket connection

Socket connection

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestion
5 Posts 3 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.
  • N Offline
    N Offline
    nahitan
    wrote on last edited by
    #1

    Hi there, Consider you have a socket connected through an IP:port from server 1 (ip:port) to server 2(different ip:port (differenet out side ip)) if the IP address of server 2 is changed for some reason, what would happen to socket connection between two servers. the application that uses the socket connection from server 1 to server 2 is running whole time but server 2 is located in a place that the ip changes every hour. what happens to the socket connection? Regards,

    M 1 Reply Last reply
    0
    • N nahitan

      Hi there, Consider you have a socket connected through an IP:port from server 1 (ip:port) to server 2(different ip:port (differenet out side ip)) if the IP address of server 2 is changed for some reason, what would happen to socket connection between two servers. the application that uses the socket connection from server 1 to server 2 is running whole time but server 2 is located in a place that the ip changes every hour. what happens to the socket connection? Regards,

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, Connection is disconnected because socket (address and port) is not valid any longer.

      ----------- Mila

      N 1 Reply Last reply
      0
      • M Mila025

        Hi, Connection is disconnected because socket (address and port) is not valid any longer.

        ----------- Mila

        N Offline
        N Offline
        nahitan
        wrote on last edited by
        #3

        This is what I think but I have a colleague that says when the conncetion between two server is up throgh a socket, even though the ip changes for one server the connection should be there. And any new connection should use the new ip address not the one that is already there.

        M 1 Reply Last reply
        0
        • N nahitan

          This is what I think but I have a colleague that says when the conncetion between two server is up throgh a socket, even though the ip changes for one server the connection should be there. And any new connection should use the new ip address not the one that is already there.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          I just tried changing the IP on a LAN and the TCP/IP connection dropped.

          "Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot? Of course you don't, no one does. It never happens. It's a dumb question... skip it."

          N 1 Reply Last reply
          0
          • M Mark Salsbery

            I just tried changing the IP on a LAN and the TCP/IP connection dropped.

            "Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot? Of course you don't, no one does. It never happens. It's a dumb question... skip it."

            N Offline
            N Offline
            nahitan
            wrote on last edited by
            #5

            Thanks a lot!

            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