Thread: Blocking a port.

Results 1 to 2 of 2
  1. #1 Blocking a port. 
    Registered Member
    Join Date
    Feb 2014
    Posts
    22
    Thanks given
    1
    Thanks received
    3
    Rep Power
    11
    How can i block a certain port so if a players has that port opened they wont be able to login.
    Reply With Quote  
     

  2. #2  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,108
    Thanks given
    2,402
    Thanks received
    2,825
    Rep Power
    4604
    Code:
    		int port = ((InetSocketAddress) session.getRemoteAddress()).getPort();
    		if(port == #) {
    			returnCode = #;
    		}
    Where session is an IoSession object.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Blocking Ports from Connecting?
    By Billionaire in forum Help
    Replies: 2
    Last Post: 01-29-2012, 03:54 PM
  2. Every single port is blocked
    By bracket in forum Software
    Replies: 1
    Last Post: 08-16-2011, 02:30 AM
  3. ISP blocking port 43594
    By Courtney in forum Help
    Replies: 13
    Last Post: 11-29-2010, 12:41 AM
  4. All ports Are blocked !!!!! READ
    By pkownage135 in forum Hosting
    Replies: 2
    Last Post: 05-24-2009, 06:38 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
  •