Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

assigninmg ip address using java code only  RSS feed

 
Deepak Saini
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to assign an IP addess to the system from java code itself..is there any way to do it...??
Regards
Deepak Saini
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is one method to know the client address/ remote address.
request.getRemoteAddress();
u can get remote address. or else if u think in java
there is one package call java.util.*;
here is one interface... in that there is one method getInetAddress(). u can access ..
ok
best of luck
cheers
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!