# Where do I get the code?

**URL:** https://forums.plex.tv/t/where-do-i-get-the-code/759894
**Category:** Plex Players
**Tags:** android-mobile-legacy
**Created:** [November 24, 2021, 3:06pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894 "2021-11-24T15:06:26Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 3:06pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/1 "2021-11-24T15:06:26Z")

</div>

My Android phone is asking for a 4-character code, but it doesn’t tell me where to get the code. How do I get the code that allows me to logon to Plex with my phone?

(I tried to upload an image of my phone screen, but I keep getting error messages that do not say what the problem is.)

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 24, 2021, 3:29pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/2 "2021-11-24T15:29:00Z")

</div>

Open [https://plex.tv/link](https://plex.tv/link) in a browser  
You might be asked to sign-in with your Plex account and will then get an option to enter the 4 characters / digits.

> **[Connect a Player App to Your Plex Account | Plex Support](https://support.plex.tv/articles/203395277-connect-app-to-your-plex-account/#toc-1)**
>
> When using a Plex player (e.g. client) app, the first thing you’ll usually do is to connect it to your...

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 4:29pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/3 "2021-11-24T16:29:10Z")

</div>

I am getting this screen after I logon. I received an email message about a logon on a new device, but I only looked at the subject. I didn’t open the message because the logon was expected. Now that I opened the email, I see there is a link in it. (Why don’t they put that link on the phone screen?)

So, now I have another problem. I am getting the same screen asking for a code in the browser. Somehow, everything I open is asking for a code without telling me how to get the code. Even the app to get a code wants a code.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 24, 2021, 5:14pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/4 "2021-11-24T17:14:55Z")

</div>

I suppose we were talking about two different things…  
Usually you only get those codes I was referring on the big-screen apps (those which tend not to have a great keyboard or other input methods). The screen will present a 4-character code with the link – you can then open that URL in your browser and enter the 4-character code from your TV screen.

You seem to be seeing a user switching screen.  
Have you by chance been added to a friend’s Plex Home (instead of being simply added as a friend to share their media)?

> **[How do I leave a Plex Home? | Plex Support](https://support.plex.tv/articles/203888038-how-do-i-leave-a-plex-home/)**
>
> Leaving a Plex Home is easy to do. However, make sure you really want to do so as there could...

---

<div class="post-metadata">

### Author: ![SwiftPanda16](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/swiftpanda16/32/81839_2.png) [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)
#### Post date: [November 24, 2021, 5:20pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/5 "2021-11-24T17:20:18Z")

</div>

I think he’s seeing a two-factor authentication code.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 24, 2021, 5:23pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/6 "2021-11-24T17:23:40Z")

</div>

so many different 4-digit / character codes 😉

@neognat : could you try one more time uploading a screenshot? I suppose this might be quite helpful in resolving what you’re actually looking at.

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 5:33pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/7 "2021-11-24T17:33:37Z")

</div>

I tried uploading a screenshot and I’m still getting an unspecified error.

This page “[Link | Plex](https://www.plex.tv/link/)” which I think is supposed to provide a code is actually asking for a code. It is on a Windows 11 PC, not the phone. I get a very similar screen on the phone. Plex is otherwise working normally on the PC. I am logged on as usual in another browser tab.

---

<div class="post-metadata">

### Author: ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)
#### Post date: [November 24, 2021, 7:16pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/8 "2021-11-24T19:16:06Z")

</div>

> [@neognat](#):
>
> I am logged on as usual in another browser tab.

Go to Settings → Users & Sharing. Is there a green lock next to your username?

If so, you’ve a PIN protected account. You need to enter the four digit pin code to complete the login process. If you forgot the code, click on `Edit PIN`. You’ll see `Forgot?` on the next screen. Click on it to start the recovery process.

 ![Screenshot (932)](https://global.discourse-cdn.com/plex/original/4X/6/b/6/6b6c2afd62163aff8483b13eaeb1ae9bae127128.png)

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 8:34pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/9 "2021-11-24T20:34:06Z")

</div>

I do not have a PIN-protected account.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 24, 2021, 9:12pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/10 "2021-11-24T21:12:25Z")

</div>

What details do you see when you open the users & sharing options?  
[https://app.plex.tv/desktop/#!/settings/users-sharing](https://app.plex.tv/desktop/#!/settings/users-sharing)

Does your account have the subtitle `Admin` and the little 👑 icon next to it?  
When hovering over the account line… do you see a little red ❌ at the right side (where it says `Edit PIN` in FordGuy61’s screenshot)?

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 10:19pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/11 "2021-11-24T22:19:41Z")

</div>

I have an admin account and there is no red X at the right.

This really looks like the screen we see when a new device is being activated. The phone might be new because it’s running in Firefox for the first time. The phone has had the Plex Android app for a long time and it’s running normally. Firefox on the PC, on the other had, is not new and Plex has been running in it for years.

Am I using the wrong app? Does the ‘/link/’ link provide a code or ask for a code? It is asking for a code. I thought it was supposed to give me a code to register the new program running in Firefox on the phone.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 24, 2021, 10:27pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/12 "2021-11-24T22:27:53Z")

</div>

You get a code in the app that’s to be linked – which you can then enter on [Link | Plex](https://plex.tv/link)  
If you’re not getting that and haven’t been added to a friend’s Plex Home / added a login PIN to your account… that leaves us with @SwiftPanda16’s suggestion… Did you enable some kind of 2FA w/ Plex so the login screen is asking for an authenticator’s code?

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 24, 2021, 11:35pm UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/13 "2021-11-24T23:35:22Z")

</div>

I am getting the code entry screen on both sides. I am not seeing a screen that displays a code. That’s the problem. I’m supposed to enter a code that I don’t have. This is very confusing and brings us back to my original question: How (or perhaps where) do I get a code to make Plex work in my phone’s Firefox browser?

No. I don’t have 2FA active and I haven’t changed the Plex login or my password. I was able to logon okay in the phone’s browser. It asked for the code after a successful logon. I can think of two recent changes: 1) I changed my Plex Pass to lifetime, and 2) The PC has a recent upgrade to Windows 11.

I bought the phone in March, so it’s somewhat new, but has been working with the Android app. I just wanted to run Plex in Firefox. If I can’t, that’s okay.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 25, 2021, 12:45am UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/14 "2021-11-25T00:45:23Z")

</div>

As we’re ruling this out one pin at a time…  
This is definitely not the Pin / Link code related to signing into a Big Screen device and as per your feedback, there’s no 2FA code in the game.

Can we briefly get back to your earlier response to FordGuy61’s post

> [@neognat](#):
>
> I do not have a PIN-protected account.

# 

Is that statement based on “you haven’t knowingly set a PIN” or did you get to verify that in [your account settings](https://app.plex.tv/desktop/#!/settings/users-sharing)?

For anything else we’ll need either a screenshot or the exact wording on the message asking for that code.

---

<div class="post-metadata">

### Author: ![neognat](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/neognat/32/163541_2.png) [@neognat](https://forums.plex.tv/u/neognat)
#### Post date: [November 25, 2021, 1:13am UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/15 "2021-11-25T01:13:11Z")

</div>

I did verify that I do not have a PIN-protected account in my account settings.

The screen on my phone says this: “Link Account / To link your account, please enter the 4-character code displayed on your app.” This, I believe, is the app that should display the code.

The screen on my computer says this: “Link Account / To link your account, please enter the 4-character code displayed on your app.” This, I believe, is correctly requesting the code that should be displayed on my phone, but isn’t.

I have tried to post a screenshot many times, but I keep getting this error message: “Sorry, there was an error uploading that file. Please try again.” I went to a Windows 10 computer and tried it, thinking it might be a Windows 11 problem. It also didn’t work there. I’m willing to try something else if you have any suggestions.

Like I said, though, this is as important as the amount of time we’re spending trying to solve it. I don’t really need the browser app to work on my phone. Maybe it’ll work after a reboot or something.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [November 25, 2021, 8:09am UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/16 "2021-11-25T08:09:57Z")

</div>

Let’s try that.

This is the expected message if you’re opening [Link | Plex](https://plex.tv/link) in a browser. It’s supposed to be used to enter the code displayed on a dedicated Plex app (e.g. on your TV or a streaming box).  
You should not see that if you’re trying to access your server using Plex through your browser ([https://app.plex.tv/desktop](https://app.plex.tv/desktop)) or say the desktop app “Plex for Mac/Windows”).

Using the native Plex app on a mobile device (such as Android mobile) you should see the same login options as when using the browser. The only situation I can imagine where Plex might offer you the “big screen” option is if you’ve set your mobile app to use the TV layout (`Settings` \> `Experience` \> `Application Layout` → `TV Mode`)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [February 23, 2022, 8:10am UTC](https://forums.plex.tv/t/where-do-i-get-the-code/759894/17 "2022-02-23T08:10:20Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
