Socket Confirmation: Java Security Checks Needed?

  • Thread starter Thread starter 0rthodontist
  • Start date Start date
  • Tags Tags
    Socket
AI Thread Summary
The discussion focuses on ensuring that a Java application only responds to connections from a local host via socket communication. The user is concerned about the potential for IP address spoofing and whether Java provides inherent security checks to prevent this. Currently, the application uses a random integer exchange for verification, but there is uncertainty about its necessity. The main question revolves around the adequacy of these security measures and whether additional checks are needed to confirm the authenticity of the connecting application. Ultimately, ensuring secure socket communication is crucial to prevent unauthorized access.
0rthodontist
Science Advisor
Messages
1,229
Reaction score
0
I have a Java application that takes an action when another application starts and connects to it via a socket. The thing is that I only want the original application to take the action when the other application is on the local host. I check the IP address of the socket to confirm this, but could someone spoof the IP address of a Java socket? Or does Java automatically do some two-way checking? Right now it is set up so that the original program passes a random integer back and forth to confirm that the other program is where it says it is, but do I actually need to do this?
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Replies
10
Views
2K
Replies
40
Views
4K
Replies
3
Views
13K
Replies
4
Views
2K
Replies
15
Views
2K
Replies
33
Views
7K
Back
Top