• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Sockets - Home Network.  RSS feed

 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Did anyone try to use sockets in a home network(which is not connected to ips). If so do let me know.
Thanks,
Vinod
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should work just fine. Your only difficulty is going to be that many home networks use DHCP and dynamic IP addresses, so the machines don't really have names; you're going to have to set up a name service of some kind if you don't already have one.
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
now lets' say the workgroup is wkgp and the system are sys1 and sys2. I've opened a serversocket on sys1, then how do i connect to sys1 from sys2. I have tried using "new Socket("//sys1", 116)". It gives me unknownhost exception. Ne ideas?
thanks,
vinod.
[ November 20, 2003: Message edited by: Vinod Chandana ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!