Thread: basic TCP client/server not sending file from virtual machine to host pc

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    basic TCP client/server not sending file from virtual machine to host pc

    I have made a basic TCP client / server that sends a file from the client to the server, it works perfect on this windows 7 pc , but when i send the client.exe to the virtual os which is windows xp and run it and try to connect, it dosent apear to be sending???, can you only send data with TCP from the same os?????

    Thanks if you can help

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    No, you can send data to any OS that handles TCP/IP networking (including Windows XP). The issue is probably that the client.exe is not built/compiled for Windows XP, so it doesn't run properly. Beyond that, I can't help much as I'm a Linux guy.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    319
    How can it not be built for windows xp, it was compiled with visual studio

  4. #4
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    > it dosent apear to be sending???
    Use Wireshark. If you're doing any sort of networking programming, it's a great tool to check whether you're sending, and whether you're receiving the sent packets on the other side.

    For TCP, this is really easy. Look for errant FIN/RST flags, if you see one in the middle of the transmission, that means something is artificially closing your socket (most likely a function returns before you're done).

    If that doesn't work, post your code I'll try to help you further.

    > How can it not be built for windows xp, it was compiled with visual studio
    /facepalm

  5. #5
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Quote Originally Posted by Anddos View Post
    How can it not be built for windows xp, it was compiled with visual studio
    If this is a serious question, then you misunderstand Visual Studio. It's a compiler, independent of any version of Windows. If you install it on Windows 7, the default behavior is to build programs for Windows 7. Those may not work on Windows XP. This can be a 32/64 bit issue or a number of other things related to differences in the two Windows versions and the libraries, etc they provide.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making a basic Virtual Machine
    By manasij7479 in forum Tech Board
    Replies: 10
    Last Post: 07-04-2011, 08:39 PM
  2. Replies: 29
    Last Post: 10-22-2009, 11:01 AM
  3. Client/server problem; server either stops receiving data or client stops sending
    By robot-ic in forum Networking/Device Communication
    Replies: 10
    Last Post: 02-16-2009, 11:45 AM
  4. sending binaries files between server and client
    By nacho4d in forum C Programming
    Replies: 12
    Last Post: 01-31-2008, 01:54 AM
  5. client server on same machine?
    By mwagiru in forum C Programming
    Replies: 4
    Last Post: 05-29-2003, 09:38 AM