delivered the opinion of the court.
This is a petition for a writ of mandamus,' requiring the judges of the Circuit Court of the United States for the Eastern District of Pennsylvania to hear and determine certain suits brought in that court in favor of the relators against 'a number of insurance companies incorporated by the laws of other, States, but, doing business in that State under a license ' granted pursuant to a statute regulating that subject. The Circuit Court declines to entertain jurisdiction of the causes, for the reason, as is alleged, that the defendant companies were not “ at the commencement of the respective suits, or at any time, inhabitants of or found in the said district.” This presents the only question in. the case, as it is conceded that the citizenship of the parties is such as to give the court jurisdiction, if the several defendants can be sued in the- -district without, their consent.
A statute of Pennsylvania provides that “ no insurance company not of this State, nor its agents, shall do business in this State until he has filed with the insurance commissioner of this' State a written stipulation, duly authenticated by the company, • agreeing that- -any legal process affecting the company served on, the insurance commissioner, or the party designated by him, or the agent specified by said company to receive service of process for the said company, shall have the same effect as if ' served personally on the, company within this State; and, if such company should cease to maintain such agent in this State, so . designated, such process may thereafter be' served on the insurance commissioner; but, so long as_,any liability of the stipulating company to any resident of this State continues, such stipulation cannot be revoked or modified, except that a new one may be substituted, so as to require or dispense with the. service at the office of said company within this State, and that such service of process according to this stipulation shall be sufficient personal service on the. company. The term ‘ pro *375 cess ’ includes any writ of'summons, subpoena,'.or order whereby . any action, suit, or proceedings shall be commenced, or which shall be issued in or upon ¿ny action, suit, or proceedings brought in any court .of this Commonwealth having jurisdiction of the subject-matter.” Laws of Penn., 1873, p. 27, sect. 13.
The return to the rule to show eaúse admits that all the defendant companies were doing business in the State under this •statute, and that their designated agents were duly served with process in each of the suits. For the purposes of this hearing, the fact of due service upon the agents must be considered as established. . If in reality it is not so, the court below will not be precluded by any thing in- this proceeding from .inquiring into the truth, and acting upon the facts as they are found to exist.
The act of 1875, determining -the jurisdiction of the circuit-courts (18 Stat. 470), and, which in this' particular is- substantially a re-enactment of the act of 1789 (1 Stat. 79, sect. 11), provides that “ no civil suit shall vbe brought before 'either of said courts against Shy person by any original process or,.,proceeding in any other district than that whereof he is ah inháb • itant, or in which he shall he found at the time of serving such process or commencing such proceedings, except,” &c.
-. It is unnecessary to .inquire whether" these several companies were inhabitants of the district. . The requirements of the law, for all'the. purposes'of this case, are satisfied if they, were found there at the time of the commencement of the suits; and that question, we think, was settled in Railroad
Company
v.
Harris,
Applying these principles to the present case, there cannot be any doubt, as it seems to us, of -the jurisdiction of the Circuit • Court over these defendant companies. They have in express terms, in consideration of a grant of the privilege of doing busi-. ness within ■ the State, agreed that they may be. sued . there; that- is to say, that they may be. found there for the purposes of the service of process issued “ by any court of the Commonwealth having jurisdiction of the subject-matter.” ' This was a condition imposed by the State Upon the. privilege granted, and it was not unreasonable.
Lafayette Insurance Co.
v.
French,
States cannot by tbeir legislation confer jurisdiction upon tbe courts of tbe United States, neither can consent of parties give jurisdiction when tbe facts do not; but both State legislation and consent of parties may bring about a state of facts which will" authorize tbe courts of tbe United States to take cognizance, of abase.
Ex parte
McNeil,
A corporation cannot change its residence or its citizenship. It can have its legal home only at tbe place where it is located by or under tbe authority of its charter; but fit may by its agents transact business anywhere, unless prohibited by its *378 charter or excluded'by local laws. Under such circumstances, it seems clear that it may, for the purpose of securing business, consent to be “ found ” away from home, for the purposes of suit as to matters growing out of its-transactions. The act of Congress prescribing the place where a person may be sued is not one affecting the general jurisdiction of the courts, It is rather in the nature of a personal exemption in favor' of a defendant, .and it-is one which he may waive. If the citizenship of the parties is sufficient, a defendant may consent to be sued ■ anywhere he pleases, and certainly jurisdiction will not be ousted because he has consented. -Here, the defendant companies have provided that they can be found in a district other than that in which they reside, if a particular mode of proceeding is adopted,ánd they have been so found. In our opinion, therefore, the Circuit Court has jurisdiction of the causes, and should proceed to hear and decide them.
We are aware that the .practice in the circuit courts generally has been to decline jurisdiction in this class of suits. Upon an examination of the reported cases in which this question has been decided, we find that in almost every instance the ruling was made upon the authority of the late Mr. Justice Nelson, in
Day
v.
The Newark India-rubber Manufacturing Co.,
Judge Woods, of the fifth'circuit, has already decided in, favor of the jurisdiction in
Knott
v.
The Southern Life Insurance Co.
(
