Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 837
  • 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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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