How can I transload data between two delphi applications over internet?

Hi let me make my question clear. Two people using my app are connected to the internet. Both have each other's IP and they want to chat (like Y!messanger) with each other. I think I need to use Indy components; right? Which component should I use? Thanks in advance


In general, you are looking to create a "Client/Server" type application. A quick Google search for "indy client server example" pulls up lots of results, including this one:

In reality, this gets a lot more complicated when you have firewalls and NATs with private IP addresses. You will have to consider how your application will either get around or through these types of technologies.

Have you looked at any of the demos on Indy's website yet?

Similar to what Scott said, I think that your biggest problem is getting them talking to each other. My computers at home go through a router, which blocks all incoming connection requests (i.e. requests to start a conversation between two computers) from the Internet. My computers can send connection requests OUT, and start a conversation that way, but unless you modify the router (port forwarding) my computers can not receive connection requests.

You need a server somewhere to which both people will connect, that can then relay messages back and forth. To get really tricky, once the connection is made to the server the two computers can then be put into direct contact, but that involves UDP packets and some clever magic.

Need Your Help

Create the structure of an empty collection in mongoDB

json mongodb

Is there any possibility to create the structure of an empty collection in MongoDB using mongoimport from a JSON file like the one below?

Windows 8 Market App, JS, access remote XML file?

javascript jquery xml windows-8

I've ran into Same Origin Policy issues before while doing standard web development. I usually end up writing a web service as a proxy. However, now that I'm trying to dabble in Windows 8

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.