Postingan

Menampilkan postingan dari Mei, 2017

Program Jaringan Client Server

Gambar
Koding Get IP import java.net.*; public class getip { public static void main(String args[]) throws Exception { InetAddress host = null; host = InetAddress.getLocalHost(); byte ip[] = host.getAddress(); for (int i=0; i<ip.length; i++) { if (i > 0) { System.out.print("."); } System.out.print(ip[i] & 0xff); } System.out.println(); } } Kodingan di atas ini berfungsi untuk mendapatkan ip untuk masing-masing komputer dengar memasukkan null, maka ip akan muncul. Output Koding Get Name import java.net.*; public class getName { public static void main(String args[]) throws Exception { InetAddress host = null; host = InetAddress.getLocalHost(); System.out.println("Nama komputer Anda: " + host.getHostName()); } } kodingan di atas berfungsi untuk menampilkan nama komputer kita. Output Koding Ip to Name import java.net.*; public class IPtoName { public static void main(String args[]) { if (args.length == 0...

Konfigurasi DNS,WEB,WEBMAIL, dan MAIL pada DEBIAN 6

Gambar
Mengkonfigurasi Network root@debian:~# nano /etc/network/interfaces # The local network interface auto eth0 iface eth0 inet static             address 192.100.23.17             netmask 255.255.255.248             network 192.100.23.16             gateway 192.100.23.22             broadcast 192.100.23.23             dns-nameserver 192.100.23.17 auto eth0:0 iface eth0:0 inet static             address 192.100.23.18             netmask 255.255.255.248 auto eth0:1 iface eth0:1 inet static      ...