Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java networking?

First off, before I ask, i would like to point out that this question is for education. I want to know to expand my understanding of Java and network security (what little there is).

How could you use Java for network security and counter attacks? I have been using server/sockets for a while now (for non system security stuffs), but I don't quite understand what I'm doing. Naturally, I should learn up on networking, but where to start? There is a protocol for everything, heck there are protocols to have protocols. To further expand, how could you use Java to say, port sniff, catch packets or kill/open a port remotely?

I guess to phrase the question more adequately; does anyone know of any good sources that I could look at to get a more in depth look/study of how Java handles network security and counter hacking and malware containment?

like image 648
ahodder Avatar asked May 10 '11 20:05

ahodder


People also ask

Can Java be used in networking?

Java is the first programming language designed from the ground up with networking in mind. As the global Internet continues to grow, Java is uniquely suited to build the next generation of network applications.

Why do we use networking in Java?

Java Networking is a notion of connecting two or more computing devices together to share the resources. Java program communicates over the network at the application layer. java.net package is useful for all the Java networking classes and interfaces. The java.net package provides support for two protocols.

Which is better for networking Java or Python?

Java is faster than Python – Java is a statistically typed and compiled language whereas Python is a dynamically typed and interpreted language which determines the variable data type. Java performs type check during compilation whereas Python performs at the run time which increases the execution time.

What is TCP IP in Java?

Java provides two classes for TCP: Socket and ServerSocket. An instance of Socket represents one end of a TCP connection. A TCP connection is an abstract two-way channel whose ends are each identified by an IP address and port number. The first TCP application, called TCPEchoClient.


1 Answers

I think the best thing to do would be to learn concepts, then worry about using Java to implement the concepts later on. There are some gaps in your understanding (for example, I don't even know what "open a port remotely" might mean) and the best thing to do would be to solidify your understanding of how networks work first.

I don't really have a list of network security texts I can recommend -- probably someone else will! -- but IMHO it might not hurt to start with a classic like Steven's "UNIX Network Programming" to shore up the fundamentals, if you can find a copy.

like image 121
Ernest Friedman-Hill Avatar answered Oct 02 '22 03:10

Ernest Friedman-Hill