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: Hmm, Is this possible?

  1. #1
    Member
    Join Date
    May 2010
    Posts
    39
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default Hmm, Is this possible?

    Alright before you comment, Im thinking in perspective to sockets.

    Before I go to my question, Ill show an example of what I mean.

    A simple socket to connect to a server can be created like:

    new Socket(host, port);

    The client connects to the said host, if possible.

    The host then receives the client, and the client ip can be just about anything e.g somthing like: (this is just an example)
    69.247.35.162
    I know of proxxie's and http connections, but is it possible to alter the above ^ (ip), when connecting to a server with java.net.socket?

    e.g hiding your i.p or, changing to another.
    Last edited by Time; July 24th, 2010 at 08:10 PM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Hmm, Is this possible?

    If you don't give the server your IP address, how will it be able to respond to you?

  3. #3
    Member
    Join Date
    May 2010
    Posts
    39
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default Re: Hmm, Is this possible?

    Quote Originally Posted by Norm View Post
    If you don't give the server your IP address, how will it be able to respond to you?
    I thought the actual Socket object it self would provide a way to overcome that.

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Hmm, Is this possible?

    In a short answer, no, you cannot "change" the appearance of your IP. The IP is needed to ensure data is being streamed to/from the correct location. Ports are only used so your computer can decide which application(s) should get the information on the destination computer.

    The only way to hide your IP is to go through a proxy, which has it's own IP (usually more than one IP), then you send requests to the proxy which in turn send a duplicate request to the destination, so the destination would only see the proxy's IP, not yours.

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

    Default Re: Hmm, Is this possible?

    Are you writing the server application?
    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.