• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Winsock or related object...?

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been able to find no references anywhere to java and winsock. if this is undoable, can anyone tell me how to get two applications on two separate computers to talk?
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Socket, ServerSocket
 
Nick George
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot, and that works great...
BUT...
it only seems to work intracomputer.
How do i get two computers to talk (with applications)?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Winsock" is the name given to an old implementation of TCP/IP back in the days before Windows came with a TCP/IP stack built in. Nowadays, the term isn't used.
Java Sockets and ServerSockets are just like the sockets you'll find in the Windows API, and of course, being an implementation of the standard TCP/IP sockets abstraction, they interoperate with Windows sockets (or sockets on any other platform.) The Java code
Socket s = new Socket("www.yahoo.com", 80);
gives you a socket connected to the webserver at Yahoo. You can substitute other names and ports to talk to any other service at any other machine.
 
Nick George
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
much thanks, and i will erase Winsock from my vocabulary
 
reply
    Bookmark Topic Watch Topic
  • New Topic