Changing the local address used by HttpURLConnection

Hi,
I would like to make an HTTP connection to a remote server but using a different local IP address than the default one.
For example, I am running my application on a web server which has several IP addresses the code below will open a connection to a web page using the default address but how can I get the HttpURLConnection implementation to use an alternative address?
   URL url = new URL("http://www.somedomain.com/another/webpage.html");
   URLConnection conn = url.openConnection();
   InputStream in = conn.getInputStream();
   ...

More than one interface/ip on one machine? Shouldn't matter, unless they're going up and down like yoyos. IP will route via whichever one is appropriate.
I found this
(but haven't tried out...)Nor has that poster apparently. The DIRECT example just throws an IllegalArgumentException, and the HTTP approach requires you to write a local proxy server, which just shifts the problem (if any) in there.
like vm launch parametersNo.

Similar Messages

  • HT201363 I want to change the email address used as rescue email for my security questions. But I can't remember the answers to the security questions and I dont have access to the rescue email anymore. Please help.

    I want to change the email address used as rescue email for my security questions. But I can't remember the answers to the security questions and I dont have access to the rescue email anymore. Please help.

    -If you established a rescue email address, there will be a link on the "Passwords & Security" page of id.apple.com.  Clicking the link will send the reset to your rescue email address (NOTE:  This is not the same address as your Apple ID email)
    -If there is no link on the page, then you didn't establish a rescue email address.  Contact AppleCare at 800.694.7466 (If you are in the US), and ask for account security.  You will need to answer some questions to verify your identity, AND you will need access to a computer to generate a temporary support pin.
    -If you are not in the US, click http://support.apple.com/kb/HT5699 - Apple ID: Contacting Apple for help with Apple ID account security
    HTH

  • HT5312 How do you change the email address used to send security answers?

    How do you change the email used to send the security answers you have forgotten? I have changed the alternative email adress in Name, ID and Email Addresses but this does not change the email address in the Password and Security section.

    Jus what do you want to accomplish? The Apple ID email address is used for variosu thing onthe iPod like:
    - For purchasing media. Srrings.iTunes and App stores. Sing out and sign into anoterh account
    - Settings>iCLoudl for iCloud account
    - Settings>FaceRome for Apple ID and where You can Be Reached At email address
    - Settings>Messages for Send And Receive email address.
    - Maybe for Game Center

  • How can I change the email address used to authorize my computer?

    I borrowed ebooks from a public library using a different email address which I should have used to authorized my computer hosting the adobe digital edition. Is there a way to modify the email address used to authorize my computer as I get an error message when I try to return the books. Thanks

    This says it was assumed answered but where is the answer?  I've gone thru the Help processes to do this but it doesn't change.  The old address is still there.  I have trouble returning books to the library and getting new books.

  • Changing the eMail address used as my Adobe ID

    I am unable to change the eMail address that I use as my Adobe ID.  I enter a new eMail address, press "send verification eMail", and nothing happens - I have done it five times, believe me.
    How are you going to help me?  The eMail address that I am trying to move away from is one of the 153 million that was stolen in the Adobe hack.

    Johnf40545851 I was moving your forum post to a more related to your topic as it is not downloading or installation related.
    I would recommend reviewing Adobe ID, sign in, and account help for information on how to change the e-mail address associated with your Adobe ID.  If you have additional questions then please contact our support team directly at Contact Customer Care.

  • "send link" function - how do I change the email address used

    When I use the "send link" function whilst using Safari on my iPad IOS 7.1.2, it now sends it from a secondary email address I have added in Mail.
    This is not my main email address (and the one I have set as my default), which is the one it has always used until recently.
    How do I change it back to my default please?

    The email address you want to use must be on your card in Address Book. Where there are multiple addresses on your card you can change between them in an iCal alarm by clicking the arrow to the right of the current address.
    AK

  • How do you change the email address associated with your apple id

    how do you change the email address used for your apple Id I have tried going on managing apple Id and it isn't working

    Just where are you going?
    and what do you see? A screen shot with personal info redacted would be great.
    I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
    Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.

  • Can I change the IP-address range when I'm using tethering

    Hi,
    I am trying to change the local IP-address range my iPhone is providing when I'm using tethering.
    Is it possible ?

    Agreed. I have migrated a central controller from one continent to another - to totally different machines and IP addresses - so your task should be a doddle. David has listed the steps.
    Regards,
    Geoff

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that account.  How do I change the email address to a new one that I can access?

    I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that same account.  Now I can't seem to login to that account and I can't choose the option for forgot password because it will send email to the old workplace.  How do I change the email address to a new one that I can access?

    If you remeber the password to that Apple ID then follow these steps
    1 - Make sure you have an email address that is NOT an Apple ID
    2 - Go to AppleID.Apple.com
    3 - Where it reads Manage Apple ID - Sign in
    Once you are signed in want to make sure the email address you are wanting to use is NOT set up as a "Recovery/Rescue" email for this account.
    [To check this - Main page where you see Primary ID - below do you see the email address you want to use listed towards the bottom? Yes - Delete / No - Good ./. If made any adjustments "Save" Next on the left select "Password & Security" - Answer your security questions you set up "if you have any" then scroll towards the bottom and check to see if you see the email address you want to use. Yes - Delete / No - Good] <-> Also you can change your password on this page as well. Any adjustments made "Save"
    Once this is done go back to the main page where you should read "Primary ID" and change the email address that is showing to the new email address youo want. "Save" Done
    I learned this not to long ago and worked for me. Hope this helps you!

  • How can i change the email address in facetime which people can use to call me on my mac book?

    i have an ipad and a mackbook air both using the same apple id. i would want to use different email address for my ipad and macbook. where can i change the email address in facetime for macbook. currently both the device use the same email address(apple id) for me.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • Hello,  My old email address which I have used as my apple id for 10 years is being made redundant. I have changed the email address to a new gmail one and this is my new apple id. But my iMac has not recognised this. It keeps saying it wants the pa

    Hello,
    My old emails address which I have used as my apple id for 10 years is being made redundant. I have changed the email address to a new gmail one and this is my new apple id. But my iMac has not recognised this. It keeps saying it wants the password for my old email address. I have seen some advice on these forums which suggest signing out of iCloud and then back in again. But when I start doing this it asks me if i want all the photos deleted that have not been downloaded onto the mac.
    I have had an iCloud account for quite sometime and I'm afraid of losing everything in my cloud if i sign out and sign in with a new id.
    Is this fear realistic?
    I know I can change back to my old email, sign out and then sign in wight he new one...
    Please help!

    This did not work for me.  My old email account for iCloud still pops up on my screen every time I open my macbook.  I've deleted it, reset it, every thing I can think of and it still shows up.  I think six months of this is more than enough time to wait.
    RDG

  • I want to change the email address that I use for my apple ID.....how do I do that!!!!

    I want to change the email address that I use for my apple ID.....how do I do that!!!!

    Hello Embark2013 - Thanks for the help!  If possible, could you or somebody in Apple-land explain to Apple that their system is IDIOTIC?!  Changing an email address should be the simplest thing imaginable.  Nobody should EVER have to consult a discussion group to learn how to do such a thing.

  • How do you change the email address that was used to set up your ipod?

    How do you change the email address that was used to set up your ipod?

    Jus what do you want to accomplish? The Apple ID email address is used for variosu thing onthe iPod like:
    - For purchasing media. Srrings.iTunes and App stores. Sing out and sign into anoterh account
    - Settings>iCLoudl for iCloud account
    - Settings>FaceRome for Apple ID and where You can Be Reached At email address
    - Settings>Messages for Send And Receive email address.
    - Maybe for Game Center

  • Want to change the email address I used to setup Icloud initiatally.  Can I do that? If I change apple ID do I lose all information in Icloud now?

    want to change the email address I used to setup Icloud initiatally.  Can I do that? If I change apple ID do I lose all information in Icloud now?

    You can change the login ID address, provided that it is not an @icloud.com, @me.com or @mac.com address. You will need to sign out on all your computers/devices and sign back in again with the new ID.
    However, once you have created an iCloud account and chosen an @icloud.com address to go with it you can't change the address (short of creating an entirely new account).
    All is not lost, though. You can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account, move it to another account, or reactivate it if you delete it.
    More information on aliases here:
    http://help.apple.com/icloud/#mm6b1a490a

Maybe you are looking for