Results 1 to 3 of 3
  1. #1
    Jman85 is offline Member
    Join Date
    Nov 2010
    Rep Power

    Default Changing IP to connect to chatrooms


    I can connect to a chatroom fine, perfectly, using sockets.

    I want to be able to change my IP and connect to the chatroom within a loop, if I can do that I can play around with it. If someone has an example code of being able to do this, that would be cool.

    I don't mind using proxies as well, but I have no clue. And I do have a dynamic IP.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    I don't think it i possible from a Java application to have the ip address as it appears in the remote socket connection changed. The only thing we might be able to do is if the machine itself had multiple public IP address aliases, to have our client socket bind to a different local ip address. But these need to exist before our application starts in order for it to make use of them.

  3. #3
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Stockholm, Sweden
    Blog Entries
    Rep Power


    If you can figure out how to change your IP address in C/C++, you can use JNI.

Similar Threads

  1. changing TF formula
    By o.imen in forum Lucene
    Replies: 0
    Last Post: 09-16-2010, 02:20 PM
  2. Changing the index
    By Drayfe in forum Lucene
    Replies: 0
    Last Post: 09-15-2010, 07:28 PM
  3. Replies: 0
    Last Post: 08-14-2010, 11:09 AM
  4. Changing the values of a map.
    By Onra in forum New To Java
    Replies: 1
    Last Post: 02-26-2010, 01:20 AM
  5. its not changing bgcolor
    By javanoobita in forum Java Applets
    Replies: 1
    Last Post: 02-21-2009, 03:29 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