Does hosting, developer or user location determine which laws apply?
<p>Example scenario:</p>
<p>I live in Switzerland and develop a software. I publish the source code (and maybe a binary executable file) on a server located in the USA. Let's also assume a user from another country downloads and uses this software.</p>
<p>I wonder, which countries laws regarding different aspects (like license, copyright and liability) apply (especially for me as developer).</p>
<hr />
<p>Additional context:</p>
<p>Switzerland does according to <a href="https://www.fedlex.admin.ch/eli/cc/1993/3122_3122_3122/de#art_8" rel="nofollow noreferrer">Art. 8, PrHG</a> (Which sadly isn't available in English) not permit to &quot;transfer&quot; liability to the end-user (as far as I understand), as many open source licenses do. So could I become liable, if the software was provided from a server located in another country than Switzerland, which permits such &quot;transfer&quot; of liability?</p>
<hr />
<p>Potentially related:</p>
<p><a href="https://law.stackexchange.com/questions/49738/which-country-laws-apply-to-user-data-hq-location-or-cloud-data-center-location">User data storage location</a> - This question seems similar to me, which lets me assume that in the above example, the law of all three countries could theoretically apply to me (even if the laws are conflicting each other).</p>

<p>A plaintiff chooses where to sue, provided that the chosen court has jurisdiction. The laws of the court's jurisdiction will generally apply, although in some cases it will also look at the laws of another relvant jurisdiction. Therefore, the laws of the developer's location, the hosting location, or of any user's location might apply.</p>
<p>Often a user agreement of a license will specify that disputes are to be determined under the laws of a particular jurisdiction. Such agreements are often given effect, but some courts disregard them in some circumstances. Crafting an agreement to limit exposure to other laws as much as possible is the kind of thing for which good legal advice is generally needed.</p>

international liability open-source-software