Java ServerSocket getInetAddress() MethodThe getInetAddress() method of ServerSocket class returns the local address of given server socket. This method will continue to return the local address after the socket is closed. SyntaxReturns:The address to which this socket is bound, or null if the socket is unbound. Example 1Output: Example 2ServerApplication ClientApplication: Output:
Next TopicJava ServerSocket
|