Binding of a server socket to an address that is not a localhostaddress


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Binding of a server socket to an address that is not a localhostaddress

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    3

    Question Binding of a server socket to an address that is not a localhostaddress

    Dear Experts,

    I have been using Sockets to establish communication between the 2 classes.
    I have a class x1 which is reqd to communicate with either one of the several receiving classes a1,a2,a3...

    Currently, i'm biniding the server sockets of the receiving classes, to different ports, and am passing the port mumber as a parameter to the x1 class..

    So the socket in x1, and that particular server socket bound to the respective port will be in communication.

    => Is it possible for me to use ip addresses instead of ports?

    => I tried to bind a server socket to an address which wasn't the localhost address. I'm getting an exception,
    " java.net.BindException: Cannot assign requested address: JVM_Bind "
    Is it not possible to do so?
    Last edited by aadgod; 03-26-2009 at 05:53 PM.

Similar Threads

  1. CRYPT_DATA_BLOB data type to CHAR
    By wilayat in forum C++
    Replies: 37
    Last Post: 08-30-2008, 04:03 PM
  2. Installing Biztalk Server 2006
    By imranx101 in forum .NET
    Replies: 10
    Last Post: 06-13-2008, 12:32 PM
  3. Replies: 3
    Last Post: 05-15-2008, 02:56 AM
  4. server app
    By Alan Shiers in forum Java
    Replies: 1
    Last Post: 09-19-2000, 12:57 PM
  5. Replies: 1
    Last Post: 07-24-2000, 03:18 PM

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center