DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: IP Address

  1. #1
    Join Date
    Apr 2006
    Posts
    2

    IP Address

    how to get IP address of requesting machine?

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    Depends on the circumstances. Within a servlet, you can invoke request.getRemoteHost(). When you have a server to which a client socket connects, then you can get it by invoking clientsocket.getInetAddress().

Similar Threads

  1. Replies: 1
    Last Post: 04-07-2006, 05:21 AM
  2. Replies: 0
    Last Post: 01-30-2006, 01:14 AM
  3. Replies: 0
    Last Post: 01-30-2006, 01:13 AM
  4. Print address at bottom of page-Help
    By Suraj in forum Architecture and Design
    Replies: 0
    Last Post: 02-05-2001, 08:37 AM
  5. Print Address tag at bottom of page
    By Suraj in forum Web
    Replies: 0
    Last Post: 02-04-2001, 03:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links