473,378 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to create a local area network simulation using java

3
i just want to create a simulation of LAN [ 3 clients ] using java. i got the code for the client and serversocket programs - although i could make connection between 3 clients and a server socket , iam not able to create a connection directly between 2 clients without the help of server socket .it will be great if you pls give me idea on how to create a simulation .
Nov 28 '08 #1
1 4588
JosAH
11,448 Expert 8TB
@itcoll

It depends on how you want to do it:

1) all traffic goes through the server; you have to add a destination 'address' to every message you send to the server but logically want to have sent to another client.

2) send messages from 'peer to peer'; all clients need to be a 'server', i.e. they all need to have a server socket which accepts incoming connect requests.

kind regards,

Jos
Nov 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: sleepyant | last post by:
Hi, I am making a simple backup program where the files selected can be transfered from a source to a destination. The source/destination could be inside user's own PC or a different PC within a...
10
by: Woody Splawn | last post by:
I have been developing a ClientServer application on one machine at my office but the time has come to transfer it to the customer. The customer is running a Windows 2000 local area network. I...
2
by: gndzkdr | last post by:
hi all, i m new on Sql and i have a project related to C# and Sql. i have to do a project which must work on LAN, and there must be only one database file on main computer(Server Computer) and...
4
by: cj | last post by:
How would you suggest I test that my network drive is still up and running. Right now I'm going to write to a file at the root of the drive and then read it back in. If either the write or read...
2
by: ali | last post by:
I have a program that has hand written database connections and DataGridView that connects to my database on sql server using computer's name .this works fine locally BUT problem occures when...
3
by: anganb | last post by:
Local Area Network (LAN) Both an EtherNet (wire) network and a wireless network are referred to as a Local Area Network (LAN). A wireless network does not require hubs, switchers, or routers to...
4
by: ramyamuthusamy | last post by:
Hi I want to know how to analyse the network traffic using java,,
2
by: dhirennaik | last post by:
dear freinds, I have window form with datagridview , which display employeename I used datasource property of datagridview to employeeTable. now , my problem is here. when i insert or...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.