aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes connecting 2 systems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "connecting 2 systems" Watch "connecting 2 systems" New topic

connecting 2 systems

bala chidambaram

Joined: Jan 19, 2004
Posts: 24
i have two systems with internet connection. can i connect these two through internet by specifing 'ip address'?
suggestions are welcome
thank u.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hmmm, kind depends on what "connect" means to you. Since you're in the sockets forum, you can certainly open a server socket on one machine and connect as client from the other machine. Is that the kind of thing you're after? If so, Google for "java sockets tutorial". Sun has a good one and there are plenty of others around out there. It's not too hard at all.
BTW: Firewalls between the two machines may throw a wrench in the works. For example, my PC at work cannot be a server to anyone outside the company firewall without corporate approval and firewall mods.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Don't get me started about those stupid light bulbs.
subject: connecting 2 systems