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. file transfer

file transfer

Scheduled Pinned Locked Moved C / C++ / MFC
c++
10 Posts 7 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.
  • R Offline
    R Offline
    ravijmca
    wrote on last edited by
    #1

    Hi All

    Is that any simple way to transfer files from one computer to another computer via internet using VC++ code

    L N Richard Andrew x64R M 4 Replies Last reply
    0
    • R ravijmca

      Hi All

      Is that any simple way to transfer files from one computer to another computer via internet using VC++ code

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try googling TCP/IP

      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns

      1 Reply Last reply
      0
      • R ravijmca

        Hi All

        Is that any simple way to transfer files from one computer to another computer via internet using VC++ code

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

        I am not sure about the transfer, but a way to get proper answers in CP is not reposting[^]

        Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

        1 Reply Last reply
        0
        • R ravijmca

          Hi All

          Is that any simple way to transfer files from one computer to another computer via internet using VC++ code

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          Yes, there is.

          The difficult we do right away... ...the impossible takes slightly longer.

          1 Reply Last reply
          0
          • R ravijmca

            Hi All

            Is that any simple way to transfer files from one computer to another computer via internet using VC++ code

            M Offline
            M Offline
            MANISH RASTOGI
            wrote on last edited by
            #5

            http://msdn.microsoft.com/en-us/library/1e4zc0sx(v=vs.80).aspx[^]

            R 1 Reply Last reply
            0
            • M MANISH RASTOGI

              http://msdn.microsoft.com/en-us/library/1e4zc0sx(v=vs.80).aspx[^]

              R Offline
              R Offline
              ravijmca
              wrote on last edited by
              #6

              thanks for your reply but i need to sending and receiving data across a internet

              L 1 Reply Last reply
              0
              • R ravijmca

                thanks for your reply but i need to sending and receiving data across a internet

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                That is exactly what sockets were designed for. Try a Google search and you will find plenty of samples and tutorials that will help you.

                Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                R 1 Reply Last reply
                0
                • L Lost User

                  That is exactly what sockets were designed for. Try a Google search and you will find plenty of samples and tutorials that will help you.

                  Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                  R Offline
                  R Offline
                  ravijmca
                  wrote on last edited by
                  #8

                  Okay but i tried many sample socket program it's works fine within a network ips like 127.0.0.1 but i tried to connect dynamic ip( which is get for www.whatismyip.com) it's fails to communicate..

                  J 1 Reply Last reply
                  0
                  • R ravijmca

                    Okay but i tried many sample socket program it's works fine within a network ips like 127.0.0.1 but i tried to connect dynamic ip( which is get for www.whatismyip.com) it's fails to communicate..

                    J Offline
                    J Offline
                    jschell
                    wrote on last edited by
                    #9

                    ravijmca wrote:

                    but i tried to connect dynamic ip( which is get for www.whatismyip.com) it's fails to communicate..

                    To use IP there are two computers: client and server. To use IP there MUST be a way to route between those two computers. To route the address of the server must be exposed to the client. There are ONLY two ways to do that on the internet. 1. The server MUST have a public IP. 2. The server MUST have a network setup (routers/gateways) such that a public IP will route to the server (the server need not have a public IP.) whatismyip will always give a result but that result doesn't mean anything. All that matters is 1/2 above. For normal ISPs there are three ways that they provide customers with "internet". 1. The customer has a static public IP. 2. The customer has a dynamic public IP. 3. The customer does not have a public IP. (in this case it does not matter whether it is static/dynamic.) The result of whatismyip is only relevant to the above if the ISP is 1 or 2. If that is the case then the IP listed is the one that your computer (or router/modem) has. Note that 127.0.0.1 is not a public IP nor is it a private one for that matter. (Also just because your computer has a public IP it doesn't mean it is public on the internet but it does make it more likely.)

                    A 1 Reply Last reply
                    0
                    • J jschell

                      ravijmca wrote:

                      but i tried to connect dynamic ip( which is get for www.whatismyip.com) it's fails to communicate..

                      To use IP there are two computers: client and server. To use IP there MUST be a way to route between those two computers. To route the address of the server must be exposed to the client. There are ONLY two ways to do that on the internet. 1. The server MUST have a public IP. 2. The server MUST have a network setup (routers/gateways) such that a public IP will route to the server (the server need not have a public IP.) whatismyip will always give a result but that result doesn't mean anything. All that matters is 1/2 above. For normal ISPs there are three ways that they provide customers with "internet". 1. The customer has a static public IP. 2. The customer has a dynamic public IP. 3. The customer does not have a public IP. (in this case it does not matter whether it is static/dynamic.) The result of whatismyip is only relevant to the above if the ISP is 1 or 2. If that is the case then the IP listed is the one that your computer (or router/modem) has. Note that 127.0.0.1 is not a public IP nor is it a private one for that matter. (Also just because your computer has a public IP it doesn't mean it is public on the internet but it does make it more likely.)

                      A Offline
                      A Offline
                      Albert Holguin
                      wrote on last edited by
                      #10

                      You forgot to mention the added interference of firewalls into the whole equation.

                      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