Results 1 to 3 of 3
- 12-17-2007, 08:34 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 97
- Rep Power
- 0
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?
- 12-20-2007, 09:27 AM #2
Member
- Join Date
- Dec 2007
- Location
- Roggwil, Switzerland
- Posts
- 8
- Rep Power
- 0
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
- 12-21-2007, 02:28 PM #3
Member
- Join Date
- Nov 2007
- Posts
- 97
- Rep Power
- 0
Similar Threads
-
How to control DataBase connections using Spring framework
By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:44 AM -
Select specific cell
By Echilon in forum New To JavaReplies: 1Last Post: 01-01-2008, 07:47 AM -
TCPIP Client (handling specific exceptions)
By ravian in forum NetworkingReplies: 3Last Post: 11-29-2007, 09:56 AM -
How to control DataBase connections using Spring framework
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:15 PM -
Connections to data bases
By Albert in forum JDBCReplies: 1Last Post: 06-09-2007, 03:50 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks