• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connecting through a lan

 
Malith Yapa
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey ranchers, Gotta little theory prob. Assume I created a socket on my computer.. So that i can have a stream based connection with it from another java application.. The two applications are in two computers connected by a lan. How can I connect the two application. Can just call the appropiate port through the lan.. (Like the internet) if so what would be the ip address. otherwise what method shall use.. Please guys.. I really need some help
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you create a ServerSocket then other machines on your LAN should be able to connect to an ip address and port 01.02.03.04:1234 or machine name and port myworkstation:1234

Have you run through the Sun Network Tutorial? It's really quite good.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!