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

idTCPServer on peer to peer

can anyone give me an example of connecting two pc's in the same LAN using idTCPServer
and idTCPClient using indy 10 ?
the LAN is configured through a router with NAT and IP address
PC-1 has
PC-2 has
what i want is to connect the two PC`s as client/server
is it possible ? can anyone give a sample ?
i will appreciate any help...
1 Solution
You will find all you need to get started here

There are 2 full samples of TCP Client/Server using Indy, and more to get from Indy website
These are command-oriented, meaning you can create easily 'commands' in your server that will be treated with events. For more complex protocols, you would have to treat the TCP/IP flux byte after byte, which is not recommended for a first try at client/server.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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