Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi everyone..


I would just like to ask, how is it possible to create a client server application wirelessly / with lan using java? how would the server be able to connect to the client?
I hope someone could help...



Many Many thanks to everyone... =)
Posted
Updated 17-Jul-11 18:26pm
v4
Comments
Dr.Walt Fair, PE 16-Jul-11 18:36pm    
Can you clarify? It may depend on whether or not the computer is under Windows. I'm not sure what happens if it's by the door, unless there's Windows nearby.
DaveAuld 17-Jul-11 6:59am    
Before you are asking this question using the CodeProject system;, you must be therefore sat in the codeproject web hosts datacenter or how else do you think this works? Pixie Dust?

Is this supposed to be a joke? Seriously?
 
Share this answer
 
Comments
Member 8033321 15-Jul-11 9:33am    
i'm sorry sir....maybe my question seems simple for you..my professor said this is possible.... apparently, i am only new to programming and networking so it is quite arduous for me... please bare with me... i do hope you would understand sir.. and i'm really serious...
Richard MacCutchan 15-Jul-11 10:34am    
If you are really serious then I suggest you go to your school/university library and start some serious study of computers in general and networking in particular.
Member 8033321 15-Jul-11 9:34am    
i want to learn...
Sergey Alexandrovich Kryukov 15-Jul-11 21:20pm    
Please no offense: do you remember any signs cases when your friends made jokes on you assuming you have a problem with sense of humor? If you are not joking, first that comes to my mind is that your professor decided to make fun of you.
--SA
Sergey Alexandrovich Kryukov 15-Jul-11 21:36pm    
My 5 for having a sense of humor and detecting a problem. Now, do you ***seriously*** think your advice can help in this case? Think about it.

I analyze this problem in my solution -- please see.
--SA
Just to give you a hint: do you know that a gravitational field of the Earth is directed downward? A body with mass M has potential energy U = Mgh, where h is the altitude of the body, and g — acceleration due to gravity, so the same body gets different potential energy depending on its position, the more, the higher.

Now, think about the difference between the energy of a bit in different floors. Main problem here is: does this difference in potential energy depend on the value of the bit? In other words, if the bit with the value of one gets the potential difference ΔU when elevated to the second floor, what would be this value for a bit equals to 0: zero, ΔU or some other value?

Remember that in remoting the data is serialized into array of byte byte[]. As in general case all bytes have different values, the problem is that data serialized on one floor is decerialized on another floor, where the energy of bytes is different.

Your home task would be to resolve this problem by writing an algorithm which calculates compensation in data energy correctly.

—SA
[NOTE by TRK3:]

This is actually a simplification of the problem for a body at rest.

In actual fact, if the building in which the two floors are located is on Earth, then you will need to take into account the effects of the Earth's rotation.

The kinetic energy of a bit one floor up will be higher that (because it is moving faster) than the kinetic energy of a bit one floor down. Also, as bits descend or ascend you'll need to compensate for the coriolis effect.

Since you are just starting out, I'd suggest that you first learn to program a client / server application with two computers sitting side by side at exactly the same height (and perferrable arranged East/West of each other so that they are at the same latitude and have the same rotational speed). Once you've mastered that, then you can move the computers to separate floors and add a module to compensate for the change in potential and kinetic energy of the bits as they change altitude. It always best to start simple and then work up.

- TRK3

[Reply by SA:]

I assume acceleration of rotation is included in the local value of "g". Coriolis effect is the effect of second order, so we can neglect it; also, Coriolis effect is insignificant if electrons predominantly move vertically, from one floor to another.

We can ignore quantum-mechanical effects if the size of the local network is much more than the characteristic wavelength of the data package transferred by the network. However, this is very useful to compare these parameter to justify my approximation — thank you very much for your note.

—SA
 
Share this answer
 
v7
Comments
Richard MacCutchan 16-Jul-11 4:27am    
Ha ha, yes I think that will exercise my brain for a while. +5
Sergey Alexandrovich Kryukov 16-Jul-11 15:26pm    
Yes, needs some effort :-)
Thank you, Richard.
--SA
Member 8033321 16-Jul-11 6:37am    
wow, you guys are really ridiculous... never even thought of that... =)
Sergey Alexandrovich Kryukov 16-Jul-11 15:25pm    
Hey, you think ***we*** are ridiculous? You never thought of that? What did you think about?
--SA
TRK3 16-Jul-11 20:54pm    
Improved your solution -- if you don't take rotational effects into account the bits won't end up in the right place with the right velocity. (Of course there's always the old Heisenberg uncertainty issue...)
The answer, of course, is yes. Ultimately it all boils down to electricity. Data is really just a bunch of 1s and 0s (the basis of all computing as it stands at the moment), and this is a convenient way of viewing the fact that these 1s and 0s just stand for electricity being on or off at a particular point in time. Now, armed with this understanding, the question you have to answer for yourself is can electricity flow between the floors in the building?

Now, you might be wondering what happens if you don't have network cabling in place (along which the electricity flows)? Well, the data is transmitted wirelessly in this case, using a form of radio signal, in much the same way that your mobile phone works.

There you go. You now understand how the data can be transmitted.
 
Share this answer
 
Comments
DaveAuld 17-Jul-11 7:04am    
You forgot about the optical solution (rolls eyes)......:)
Espen Harlinn 17-Jul-11 7:57am    
Fairly nice, my 5 :)
Sergey Alexandrovich Kryukov 17-Jul-11 13:17pm    
Agree, my 5, but you should have referred to physics of the wireless transform, not just to existence of cell phones (where the network of cell stations exist), otherwise your answer leaves false impression that if cable is removed the system will continue to work :-). Considering OP's bright personality (well, I'm not convinced in stupidity, still suspect it was a joke or mystification), well, you understand... :-)
--SA
Only if the the building has a lift.
 
Share this answer
 
Actually you can do it even if the building doesn't have a lift. See:

http://www.ietf.org/rfc/rfc1149.txt[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900