Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: How can i create fake IP addresses to extract information for the DB?

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How can i create fake IP addresses to extract information for the DB?

    Hi

    I am developing a java web application that runs on tomcat. It's publicly available on the Internet so all connections I receive are from external IP addresses (DMZ).

    This app opens connections to a couple of databases and extracts some information. One of these databases is limited to two connections per IP address per hour which is not enough for my web application. (also i am not the administrator of the DB).

    Is there any way i can create fake addresses in order to extract information for the DB, maybe a "IP Pool" or something?

    Sure i could go and talk to the DBAs and explain the situation, but first i was looking for a "programmer approach".

    Any recommendations?

    Thanks.


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: DB connections limited to 2 per IP. ¿what do you recommend?

    Hey neomancer and welcome to the forums.

    So you need to be able to make it so the database can accept more than 2 connections from the same IP address per hour?

    I guess you will have to spoof the IP addresses or like you say, use an IP Pool.

    I haven't programmed an IP pool myself before but someone is sending me a similar project they worked on. Hopefully when I have this, it will help you
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: DB connections limited to 2 per IP. ¿what do you recommend?

    Thanks JavaPF.

    Well, today I'll have a a chance to talk with the DBA. I'm gonna try to explain him my needs. =D

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Thumbs up Re: DB connections limited to 2 per IP. ¿what do you recommend?

    Quote Originally Posted by neomancer View Post
    Thanks JavaPF.

    Well, today I'll have a a chance to talk with the DBA. I'm gonna try to explain him my needs. =D
    This could be a much easier solution to your problem
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  5. #5
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: DB connections limited to 2 per IP. ¿what do you recommend?

    Hello neomancer,

    I have just been sent the IP Pool source.

    This is what my friend said:

    You start with a range of IP addresses and it lets you allocate from the range. Also lets you subnet ranges that you have allocated. The main class is called IPAddressManager and you can launch it from the command line. It is supposed to work as an Applet but it didn't work when I tried it. It might be that re-compiling will get the Applet to work.
    I have not tested this myself either but I'm sure it will come in handy.

    http://www.javaprogrammingforums.com/java/IP.zip
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. How to Create a server socket to listen for incoming connections?
    By JavaPF in forum Java Networking Tutorials
    Replies: 3
    Last Post: October 28th, 2011, 10:02 AM