check out the java.net.InetAddress, in which you can get the IP of the machine you are connected to.
static InetAddress[] getAllByName(String host)

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1059

-----Original Message-----
From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:22 AM
To: [EMAIL PROTECTED]
Subject: can servlet know servers' ip?

hi,
 
this servlet need to know the ip of the server (http://www.asdfg.com) because there is a form in the servlet and in action this servlet is used again.
so i need
<FORM Action=" + ipOfTheServer + "/servlet/helloWorld">.
could you help pls?
 
thanks in advance,
serdar

Reply via email to