Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.