NETWORKING - Java Codes

Web Browser in Java

Description This is a code which runs like a web Browser. You can run this application on both Direct Connections as well as the Proxy Configured Connections. Source Code import java.awt.*; import java.n ...

0 Comments. 1026 views since Aug 18, 2008

Proxy Configuration

Description When, I was developping a network based application in Java. I face a lot of problems to configure network, specially the Proxy Configuration. After a lot of effort finally, I got the solution. Here is the code fragment, by using ...

0 Comments. 1002 views since Jul 9, 2008

HTML Page Downloader

Description This is a code which can be used to download any HTML Page,page will be saved in the directory from where your code is being executed & will be stored as YFRIndia.html NOTE: This works only for "Direct Internet Connections". If you ...

0 Comments. 961 views since Aug 17, 2008

Download Manager (Console)

Description This a sample code to download a file from network using Java. It is console application which required atleast JDK 5 (Java Development Kit - 5). Which can be download from here . This code wo ...

0 Comments. 850 views since Jul 9, 2008

IP Address Extractor

Description this code gives IP Address of a host Source Code /* * DNSLookup.java * * Created on 7 October, 2008, 4:18 PM * * To change this template, choose Tools | Template Manager * a ...

0 Comments. 823 views since Oct 17, 2008

DNS Lookup

Description This program when executed gives your systems IP address as an output. Source Code import java.net.InetAddress; import java.net.UnknownHostException; public class DNSLookup { public ...

0 Comments. 804 views since Mar 18, 2009

HTML Document: Document Iterator

Description This is a code which implements the Document Iterator for HTML documents. You just have to provide a URL. This code also works on the Proxy Configurations. Source Code import java.io.Buffered ...

0 Comments. 800 views since Sep 17, 2008

Non blocking Single File HTTP Server

Description Duplication is useful when you want to transmit the same data over multiple channels roughly in parallel. In this code the single file to serve is stored in one constant read only buffer every time a client connectsthe peogram makes ...

0 Comments. 764 views since Aug 18, 2008

Download Manager for URLs

Description It download applications from some download website's URL. Source Code /* * DownloadManager.java * * Created on August 22, 2008, 9:28 AM * * To change this template, choose Tools | Templ ...

0 Comments. 745 views since Aug 22, 2008

Mime Header Printing

Description This code prints multiple internet mail extension header when executed, it throws an extension when cannot detect a URL Source Code import java.io.IOException; import java.net.MalformedURLE ...

0 Comments. 707 views since Mar 23, 2009