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

IP address of the client  RSS feed

 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a server program which accepts client connections over a socket. For security reasons I would like to obtain the ip address of the client. I tried using

However this is retirning 0.0.0.0
Is there any other way to obtain the ip of the client ?
------------------
Shubhrajit
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved the problem. By mistake I was using the server socket.Sorry to be a bother.
------------------
Shubhrajit
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!