Networking Section Index | Page 3
I have a Dialup connection with a Ethernet Lan card . When I have dialed up and connected to the Internet I need to know what IP address is assigned to me by the ISP. Please if anyone could help me out on this.
Wow, that is a tough problem. You want to get the IP the way the rest of the internet see it! Have you tried: InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()) This would get...more
I want to monitor some network-printer status via java, maybe tcp/ip .... Could you help on this?
I'm having some thoughts of how to write a wrapperclass to the Socket-class. The new class should act as the Socket-class, but in some methods it should do something more than the usual Socket. A...more
I am using a servlet on a high-volume web server. Occassionally a back-end service which I am making frequent connections to goes down or network problems make it unavailable. When that occurs my o...more
Is there any open source Java ICQ client that supports sending SMS ?
I want to emulate this form : <FORM ENCTYPE="multipart/form-data" ACTION="objet.php3" METHOD="POST"> <INPUT NAME="ListFile" TYPE="File"> <INPUT NAME="FileSubmited" VALUE="SEND" ...more
I am trying to send a multipart/related message through http post method using URLConnection. When i set the setRequestProperty as below http.setRequestProperty("Content-Type","multipart/related;bo...more
Where can I get some code examples demonstrating the use of J2SE 1.4's non-blocking I/O API for a client/server application?
John Zukowski's article New I/0 Functionality for Java 2 Standard Edition 1.4 in Sun's Java Developer Connection contains some good examples of the usage of the non-blocking I/O API for client/ser...more
I am trying to open a network connection (for streaming) to the applet's originiating host, but its failing. Why?
There are a bunch of restrictions you have to contend with when opening a network connection from an applet. Firstly, ensure that the name of the host you are trying to connect to matches exactly ...more
Http operates on what is called the request/response paradigm. The client application generates a request for information which is passed to the server, which then replies to it. In the earliest i...more
Is there an example of a chat server (aka Threaded Virtual Meeting Place) ?
How can I find out who is accessing my TCP server? I would be interested in logging the IP addresses of the clients.
The client socket contains IP address. The lines below can help you: Socket socket = new ServerSocket ().accept (); System.out.println ("Client from " + socket.getInetAddress().getHostAddress()); more
The application of Nagle's Algortihm (named after its inventor, John Nagle) is commonly known as nagling. Nagling basically concatenates a number of small buffer messages thus decreasing the numbe...more
How to detect in the server that the client has closed the socket? When the client dies accidently the server goes in an infinite loop.
How to detect in the server that the client has closed the socket? When the client dies accidently the server goes in an infinite loop. The server reads commands sent by the client. When the client...more
My problem seemed quite simple, but I have yet to find a solution. I need to accomplish the following: Post a username and password to a web page. After authentication is complete, a FRAMESET is ...more