Networking Section Index | Page 3
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
In Sun site and a few other websites, I find two types of downloads, FTP Download & HTTP Download. What is the difference and how to implement it? Also how to make a download resume supported for broken net connections?
There are two different server types FTP (File Transfer Protocol) and HTTP (Hyper Text Transfer Protocol). FTP is able to service files located on the server using a protocol optimized for file tr...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
When I try to send over socket it gets converted to on the client side. I tried sending 10 also, but that also gets converted to . I have to send " " in the start of a TL1 response. I...more
The small HTTP server written in Java is at http://www.acme.com/java/software/Acme.Serve.Serve.html . It's very simple and you can use it as a starting point for a more sophisticated web server ...more
Use the Java Communications API. http://java.sun.com/products/javacomm/.
I want to create auto-update application that is updateable over the network. Is there some library or framework for this purpose?
Check out PowerUpdate from ZeroG (http://www.powerupdate.com). The base level of features is free.
In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying the IP address of that computer. I dont know why it is displaying like that. do i need to change any settings in that particular machine ?
In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying t...more
My computer is mapped to more than one IP adress. From my program, how can I retrieve all the IP addresses the machine is mapped to?
You can use something like: InetAddress ia=InetAddress.getLocalHost(); InetAddress a=ia.getAllByName(ia.getHostName());
[Short answer: you can't stop the thread, but you can close the socket, which causes accept to return. -Alex] Hope that I've understood you properly. So I assume, that you've got something like: ...more