Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I had a quick question. I have been reading about elastic IP's with Amazon EC2 instances. I was wondering, a lot of the stuff I do with my server is based on IP limits, like for example google map geocoding which is limited to 2,500 per IP (I beleive it is limited on IP not server).
Firstly, if I have 3 elastic IP's connected to my Amazon EC2 instance, does that mean that effectively my server can appear to be located on three different IP's, so I can effectively triple the amount of google map geocodes I can make?
Secondly, is there a way to determine which IP my server uses, and can this be changed whilst the server is running?
I'm not trying to do anything illegal, I have emailed google about this as well, but it is just to further my knowledge and see if this is possible / legal. Any information would be a great help.
An Elastic IP can only be bound to one running instance. Remapping IPs (for example changing to another IP, or giving the currently used IP to another instance) is possible during runtime.
See the Amazon Feature guide and their FAQs at the bottom.
As a sidenote, I think a lot of Google Maps API request are now on a user-basis (e.g. you have to send a token specific to your account) and not on a per-IP-basis.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
We have Barracuda 340 that we are trying to set up for load balancing across multiple servers, each with multiple applications running. If I set up a service with the specific port we are sending UDP packets to, and one IP per Real Server (with the same port as the service) everything works fine. Like the setup below:
1. Virtual IP: 192.168.14.10:20510
1. Real Server #1: 192.168.13.4:20510
2. Real Server #2: 192.168.13.5:20510
The problem is, if we try to run multiples of our applications on a single server, using different ports, it does not load balance (this does work without attempting to load balance). It just ignores the one with the different port. I can send traffic directly to that server port combo though, so I know it is listening. That would be similar to the setup below:
1. Virtual IP: 192.168.14.10:20510
1. Real Server #1: 192.168.13.4:20510
2. Real Server #2: 192.168.13.4:20511
I also tried using different NICs on the same server, and binding the applications to the specific NICs. When I do that, it completely ignores that server, and sends nothing to it.
I'm not sure if this is a limitation of the 340 device? Or if I am missing some simple settings that I've not found in the manual, yet.
Thanks for any assistance with this...
This looks to have just been an issue with the device we are using... Company bought it off Ebay, so... :)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm working on a project for my company. I'm using a DSL connection. My IP address changes every time I restart my router. Is there a faster way to request a new IP from my ISP programatically? I've seen that RDSL services can change the IP in a few seconds, but I'm looking for a more "legal" way to do this other than RDSL.
Thank you!
Does your router have firmware you can browse to? There may be a link to reboot your router (or even release/renew your IP lease) there. You can set up a cron job to call cURL to access that URL every so often. You might also have to authenticate in order to do that, but cURL should handle that.
If you're on a system that does not have cURL or cron, you may have equivalents, but they're pretty simple programs and you should be able to find them for any popular OS.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using a lot of load balancers in my workplace and I was wondering if there is a good open source one?
By good I mean one that can be used in an enterprise, and also is it efficient to use that software with regular PC?
BTW, I've been searching the internet a lot and found a few but not sure which one is better than the other one, I need your expertise.
HAProxy and nginx are popular open source options:
http://haproxy.1wt.eu/
http://www.nginx.com/
I recommend reading through the documentation for each one to get a sense of the capabilities. HAProxy is more analogous to the network load balancers I suspect you're using at work, with full support for any application protocol layered over TCP. Nginx is really an HTTP server, but it can be configured as a reverse proxy that load balances to back-end destination servers. If you just need to load-balance HTTP traffic (and you don't need to route other network protocols like ssh or SMTP), then nginx can be a good fit.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Say i'm communicating with a computer A in a remote network .
Is it possible to know what are the hops that he is going through?
In other word, is it possible to detect what is computer A route to my computer?
I know that A might have a various routes to my computer , it just want to find a route. My whole problem begins with that fact that some networks "hides" there inside computer ( like NAT ) and just give you the gateway ip.
(I'm not talking about my route to his computer that can be easly achived by traceroute)
thanks!
The IP option Record Route asks routers along the way to include their address in the datagram so the route can be tracked. The trick is, many routers and firewalls are not keen on giving out this information and DROP packets with this option set. And, you'd have to get the remote peer to set the flag, so it would only be useful if you're in control of the software on the remote peer too.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Scenario: I have two ADSL modem that are connected to to different ISPs. Each has 256KBps Speed.
Question:Is it possible to have 512KBps speed?(I have one PC that can be host any OS)
Is any special appliance essential for doing that?
Thanks in Advance,
Ashkan.
This is called multihoming or load-balancing.
The simplest way to do this would be to buy a router with two WAN ports that supports load balancing. These are generally expensive.
Alternatively you can set up a computer with 3 network interfaces to do the routing for you.
Windows
Using regedit navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters
Create 32-bit dword value "RandomAdapter" with a value of 1
You will need to set the "metric" value of the different adapters if you find traffic is still favouring one connection over the other.
From my answer on serverfault, the
"route" command is used to set this metric. The basic syntax is;
route ADD <destination> <subnet mask> <gateway (vpn dhcp server)> <metrix> IF <interface number> -p
There's some tutorials floating around here and there.
Linux
See the answers on serverfault
RJFalconer is right, but you should know that if you do this, no single TCP connection will be able to get more than 256kBps. It's much like SMP in that manner.
You may also run into trouble with (web) applications and protocols that assume every user has a single IP address at any one time. If you can replace the two connections with a single faster one, that would be vastly preferable.