Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > .NET Samples

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2009, 08:18 AM
janevblagoj janevblagoj is offline
Junior Member
 
Join Date: Oct 2006
Posts: 19
Default Two client on one computer!

HI,

Which changes I must to make in this program about (UDP Chat) which you may find on
http://delphi.about.com/library/weekly/aa101105a.htm
To work on one computer simulate 2 clients, concerning with start two times on this program
On same Computer I want to have two clients!! Is it possible?

With Regard
Janev
Reply With Quote
  #2  
Old 01-16-2011, 12:42 PM
vcldeveloper vcldeveloper is offline
Member
 
Join Date: Jan 2011
Location: Iran
Posts: 80
Default

Two clients on the same machine need to bind to different sockets; that means, they cannot bind to the same pair of HostName + PortNumber. If you have two different network interface cards in your machine, and both are configured to be in the same IP range, then you can have different hosts for each client. If you have only one NIC, then the two clients must use different ports. If the two clients are using different ports, you must take note that messages are sent to correct port, for example if client A is listening on port 4321 and client B is listening on port 5432, then client A should send its message to port 5432 for client B to receive it.
Reply With Quote
  #3  
Old 01-16-2011, 05:15 PM
janevblagoj janevblagoj is offline
Junior Member
 
Join Date: Oct 2006
Posts: 19
Thumbs down Delphi Network!

Hi,

I am Delphi programmer of hobby, and I am from Macedonia.
Are you Delphi programmer too, and have you experience of Delphi network?!
Can we contacting vie e-mail?!


With regard
Blagoj

e-mail jblagoj (at) yahoo.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:18 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.