Results 1 to 3 of 3
  1. #1
    javaplus is offline Member
    Join Date
    Nov 2007
    Posts
    97
    Rep Power
    0

    Default Rejecting connections from a specific IP

    My socket server is working fine. The clients are connecting and are getting the required responses.

    The problem is that my server is listening continuously and accepts connection from any IP. I know that I have to implement login mechanism for security, but for the time being I just want to block few IP addresses.

    How this can be done?

  2. #2
    daprodigy is offline Member
    Join Date
    Dec 2007
    Location
    Roggwil, Switzerland
    Posts
    8
    Rep Power
    0

    Default

    well ... i probably would create a method which desides if the connecting ip is beeing served or not. takes the ip-address as parameter and returns a boolean.

    greets,
    daprodigy

  3. #3
    javaplus is offline Member
    Join Date
    Nov 2007
    Posts
    97
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 04-01-2008, 10:44 AM
  2. Select specific cell
    By Echilon in forum New To Java
    Replies: 1
    Last Post: 01-01-2008, 07:47 AM
  3. TCPIP Client (handling specific exceptions)
    By ravian in forum Networking
    Replies: 3
    Last Post: 11-29-2007, 09:56 AM
  4. Replies: 0
    Last Post: 10-04-2007, 09:15 PM
  5. Connections to data bases
    By Albert in forum JDBC
    Replies: 1
    Last Post: 06-09-2007, 03:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •