HTTP Webserver Using Java

import java.net.*; import java.io.*; class myserver { public static void main(String str[]) { String myIp=null; int port=786; try{ //Get Systems current ip address myIp= Inet4Address.getLocalHost().getHostAddress(); System.out.println(“Server is Running with “+ myIp +”:”+ port); //Create Server Socket ServerSocket welcome = new ServerSocket(port); //Accept incomming connection Socket Socket sskt = welcome.accept(); PrintWriter out = new PrintWriter(sskt.getOutputStream()); //Create

Java HTTP Server and Client

Create chat application using either TCP protocol Making simple chat application using “Socket” Programming. Here is the code for TCP/IP Server and Client.  GTU; Practical 1: Advance  Java : Create chat application using either TCP  protocol   Code of Server /* * To change this license header, choose License Headers in Project Properties. * To change

Demo of I18N (Internationalization) with JAVA

I18N is called Internationalization, which supports Multiparty language in your software. again its not convert one language to other language but Display selected language from “Properties” file. Crate I18nDemo.java file Copy the following code.    import java.util.*; public class I18nDemo { private static Locale aLocale; private static Locale frLocale; private static ResourceBundle Message; public static

Make your own Java webServer

import java.net.*; import java.io.*; class myserver { public static void main(String str[]) { String myIp=null; int port=786; try{ //Get Systems current ip address myIp= Inet4Address.getLocalHost().getHostAddress(); System.out.println(“Server is Running with “+ myIp +”:”+ port); //Create Server Socket ServerSocket welcome = new ServerSocket(port); //Accept incomming connection Socket Socket sskt = welcome.accept(); PrintWriter out = new PrintWriter(sskt.getOutputStream()); //Create