http://docs.oracle.com/javase/tutori...r1/wstep2.html
Qua dovresti trovare quel che cerchi, che comunque se sono sulla tua macchina dovresti mettere localhost (127.0.0.1)