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

idTCPServer on peer to peer

hello,
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 192.168.1.1
PC-1 has 192.168.1.2
PC-2 has 192.168.1.3
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...
thanks...
0
toulis
Asked:
toulis
1 Solution
 
epasquierCommented:
You will find all you need to get started here
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_21040385.html

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.
0

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