• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 840
  • Last Modified:

Problem using TIdTCPServer and TIdTCPClient for File Transfer

Hi,

I am currently using both TIdTCPServer and TIdTCPClient to allow one PC to access a particular file on another PC (client accessing the server).

Is this possible with these classes? I was not thinking of using FTP as what I want is a peer to peer solution to retrieve one file at 1 time and then immediately close the connection.

I was able to modify the ImageServer in the Indy Demo to allow the download of the particular file when testing using 127.0.0.1.
But when I deploy the server on the real target PC, my client always give Connection problem #10061.

Anyone any idea?

Best regards,
Jason
0
jasongth
Asked:
jasongth
1 Solution
 
BdLmCommented:
I got the same problem,
my solution: try it with your real IP Adress, stand alone use 127.0.0.1 within the network use your IP  Adress.
0
 
jasongthAuthor Commented:
I found my problem in that my client is connecting to the server's IP address while my server binds to the client's IP address.
Thanks! It is my programming fault all the while.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now