socket class in java

i created server and client class using socket....

i have used localhost and port as 2010....

if again i connected in that port it is saying already the port is used....


now my question is how to close the port after it is used...??

plz...help me in this..

View Answers









Related Tutorials/Questions & Answers:
socket class in java - Java Beginners
socket class in java  i created server and client class using socket.... i have used localhost and port as 2010.... if again i connected in that port it is saying already the port is used.... now my question is how
What is Java Client Socket?
socket connections. To get connection in client socket in java used the class...What is Java Client Socket?  Hi, What is client socket in Java... problem of some sort occurred. More information about client socket in Java
Advertisements
Java Socket
Java Socket  What is a socket?  Sockets are communication channels, which facilitate inter-process communication. A socket is one end... such as the Internet,it uses a software component called a socket. The socket opens
Java Socket Programming
Java Socket Programming  Hi, What is Java Socket Programming? Can anyone give the examples of Java Socket Programming? Thanks   Hi, Please see the tutorial:Overview of Networking through JAVA Thanks
Java socket programming
Java socket programming  Hey i want to transfer a file from Server to Client or vice-versa using JAVA socket programming. Can you please guide me
Setting source port on a Java Socket?
Setting source port on a Java Socket?  Is it possible to explicitly set the the source port on a Java Socket
Java Socket Programming
Java Socket Programming  Q.server get terminated after sleep time... java.lang.*; public class Item_Server { public static void main(String[] args... ServerSocket(8189); Socket mys=s1.accept
JAVA Socket Programming
JAVA Socket Programming  i m working on a java project which has multiple client and one server instance how can i make server respond to multiple client simultaneously
SOCKET PROGRAMING IN THE JAVA FOR NETWORKING CONCEPT
SOCKET PROGRAMING IN THE JAVA FOR NETWORKING CONCEPT  I WANT TO KNOW ABOUT THE JAVA SOCKET PROGRAMING FROM BASIC LEVEL AND HOW CAN I WORK ON IT I KNOW THE JAVA PROGRAMING.SO PLEASE HELP ME HOW CAN I DO SOCKET PROGRAMING
Client Socket Information
socket information. This is a very simple program of java network. Here, we have... of the Socket class passing two arguments as hostName and TIME_PORT... ClientSocketInformation.java C:\amar>java ClientSocketInformation Socket
socket programming in java - WebSevices
socket programming in java  hello i hv made a socket program using which a server and a client can communicate.can both the server side and client side program run on the same machine or 2 different computers (connected by LAN
socket - Java Beginners
client program. i have created only one server socket for all the sockets.. is there any exception will occur if i use only one socket for both sign out and sign
Java class
Java class  What is the purpose of the Runtime class
socket programing
socket programing  how can u pass data from 1-another system by socket class
java class
java class  write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg
java class
java class  please send me the answer of the question which i have send according of java class assoon as possible . Write a java program to display.... a. Create a window class. b. Create frame within the window class. c. Extend
Java and socket - Java Server Faces Questions
Java and socket  Pls pals help me out coz i try to create a chating... java.util.logging.Logger; public class StartServer extends javax.swing.JFrame implements... input; private Socket socket; private ServerSocket server
what is rmi n socket - Java Interview Questions
. http://www.roseindia.net/java/network/client-socket-information.shtml...: 1.what is rmi? 2.what is socket? 3.which one is superb? 4.what are the difference... friend, RMI allows a Java program to invoke a method that is being executed
Java socket Programming - Java Server Faces Questions
Java socket Programming  I want to create a web server. How do I retrieve URL sent by client and how do server responds to the specific URL requested by the client
Java inner class and static nested class
Java inner class and static nested class  Java inner class and static nested class
Java Class Size
Java Class Size  How to determine size of java class
Java inner class
Java inner class  What are inner class and anonymous class
class method in java
class method in java  How to write a class method in Java?   You must read Java - Class, Object and Methods in Java
Java dictionary class
Java dictionary class  What is the Dictionary class
Java adapter class
Java adapter class  What is adapter class
Example of HashMap class in java
Example of HashMap class in java. The HashMap is a class in java collection framwork. It stores values in the form of key/value pair. It is not synchronized
Java class file
Java class file  How do i open a java class file using eclipse
java anonymous class
java anonymous class  Can an anonymous class be declared as implementing an interface and extending a class
Java nested class example
Java nested class example  Give me any example of Nested Class.   Nested Class: Class defined within another class is called nested class. Nested class is divided into two parts- 1.Static 2.Non-static Static
converting java class to java fx class
converting java class to java fx class   i am working on a java project which would convert text to speech and speech to text. i have developed a java file that would work for text to speech. it is working fine as a .java file
java object class methods
java object class methods  What are the methods in Object class?  There are lots of methods in object class. the list of some methods are as- clone equals wait finalize getClass hashCode notify notifyAll
Java System class
Java System class  What is the purpose of the System class
abstact class - Java Beginners
abstact class  write a java program to implement an animal abstact class
Java math class
Java math class  Can you instantiate the Math class
java Math class
java Math class  Why are the methods of the Math class static
Java file class
Java file class  What is the purpose of the File class
Java abstract class
Java abstract class  Can an abstract class be final
java class - Java Beginners
java class  How to run a java class(Mail.java) automatically in tomcat server for a particular time
What is Calendar class in Java?
What is Calendar class in Java?  Hi, What is Calendar class in Java? I want to learn about this class to make use of it in Java programs. Thanks   Hi, java.util.Calendar is an abstract class in Java and its static
The nested class - Java Beginners
The nested class  Hi, What is nested class in Java? What is the benefits of nested class? Write examples of nested class. Thanks   .../java/n/java-nested-class.shtml Thanks
to create a java class and methods
to create a java class and methods  How to create a java class without using the library class to represent linked lists of integers and also provide it with methods that can be used to reverse a list & append two lists.Also
Abstract class and interface in Java
Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between an interface and an abstract class: At the same time multiple interfaces can
How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java
Class and method question, Java?
Class and method question, Java?  Consider a Java class that you could use to get an acceptable integer value from the user. An object of this class.... implement the class in Java c. Write some Java statements that test the class
abstract class - Java Beginners
abstract class  what exactly is abstract class and in which cases its... and if possible send simple java programs showing its use.  Hi friend, In java programming language, abstract classes are those that works only
with out class - Java Beginners
with out class  can we write a program with out a class in core java?if yes,give example
Java component class
Java component class  Which method of the Component class is used to set the position and size of a component
Abstract class - Java Beginners
Abstract class  Why can use abstract class in java.?when abstract class use in java.plz Explain with program.   abstract class abs{ public void display(){ } public abstract void display1(); } public class win
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get