IntelliJ Java IDE
The moose likes Sockets and Internet Protocols and the fly likes IP address of the client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "IP address of the client" Watch "IP address of the client" New topic
Author

IP address of the client

Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
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
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Solved the problem. By mistake I was using the server socket.Sorry to be a bother.
------------------
Shubhrajit
 
 
subject: IP address of the client
 
Threads others viewed
How to Obtain Remote IP Address
Tracking Remote Public IP address
get client's IP adress without servlets or jsp?
Read Client IP Address behind Proxy
How to obtain the destination machine information
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture