Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my server I have 2 static IP addresses. I would like to set Firefox to use one IP address exclusively. Does anyone have any good ideas on achieving this?

share|improve this question

migrated from Apr 4 '13 at 13:45

This question came from our site for professional and enthusiast programmers.

This is not going to do you any favours. Almost no sites on the internet currently use IPv6. And even if they did, that's not really how this works - it will use IPv6 if and only if the target host address is an IPv6 address. Instead you should be looking for options to prefer AAAA DNS records over A records. – DaveRandom Apr 4 '13 at 13:44
So what your saying is even if the site supports IPv6 its default is probably IPv4 and will always go to that one? – J.Miller Apr 4 '13 at 13:52
Am I correct that IP addresses only belong to systems, not software? With appropriate exception for virtualization, but you're still only getting an IP for a system, even if it is a virtual one? – music2myear Apr 4 '13 at 13:54
possible duplicate of How can I get Firefox/Chrome to reach IPv6 websites? – DaveRandom Apr 4 '13 at 14:04
You claim 'The IPv4 address is set as my main address'. Can you please explain that? Choosing addresses is usually done (by default) according to RFC6724 or RFC3484. – Sander Steffann Apr 4 '13 at 14:17

Firefox does not support explicitly binding it to a certain IP address. It uses the address selection mechanisms (for source address and destination address) provided by the operating system. Depending on your platform there are ways to change that, but you'll change it for the whole OS, not just Firefox.

Linux based systems use /etc/gai.conf for the destination address selection. Setting a fixed source address can be done in the routing table. Take a look at the ip route add ... via ... src ... command syntax.

share|improve this answer

The solution to your problem is available here. This is what you needed

share|improve this answer
Please read How do I recommend software for some tips as to how you should go about recommending software. You should provide more than just a link, for example some additional information about the software itself, and how it can be used to solve the problem in the question. – DavidPostill Nov 28 '15 at 17:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .