• 3 Posts
  • 69 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle
  • bravemonkeytoraspberrypi@lemmy.mlRDP stopped working
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    9 days ago

    From the Windows side (assuming you’re using Windows to connect, considering it’s RDP and not VNC), you can open PowerShell and test to see if the Raspberry Pi is even listening for RDP connections with:

    Test-NetConnection x.x.x.x -port 3389

    Replace x.x.x.x with the IP address of the Raspberry Pi. If it shows successful, then the Raspberry Pi is listening for RDP connections.

    Do you know what RDP package you installed, and what operating system you’re running (Bookworm, Bullseye, etc)? I don’t have a raspberry pi with a desktop to test on, but if you’re using xrdp you could try:

    sudo systemctl status xrdp

    Does this give any input? If not, then you’ll need to know what package you installed to get RDP, assuming one is still installed even. If it does give you a message it might be a hint as to why it’s not working.

    If you get output from the above command you can also try:

    sudo journalctl -b | grep -C 2 xrdp

    There are much better ways of searching journalctl but I’m a noob too. The -b returns only errors from the last boot time, the -C returns that many lines before and after a match is found.






  • bravemonkeyOPtolearnpython@lemmy.mlIf statement behaving oddly
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 days ago

    Yeh, that initialization was doing it. Not sure there’s a way to initialize it without powering it on, but at least I know!

    A lot of the code I posted came from both trying to get a working test showing me if it got to the place I wanted as well as wanting a third option without multiple elif statements. I’m really just learning Python so lots of ways it could be better, I’m sure.


  • bravemonkeyOPtolearnpython@lemmy.mlIf statement behaving oddly
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 days ago

    Found the problem, as mentioned in another reply. I really appreciate your response here though - I’m coming from a PowerShell scripting background with my day job, and learned about arguments in Python just this morning. I didn’t know about ‘choices’, but that’s super handy.

    I had tried ‘is not None’ and didn’t have any luck so then tried == with the same outcome.














  • So ‘it’s already on port 8080’ makes sense, but as I mentioned, no remote computers on the same LAN can reach that port (they can ping the host with no issue), and that’s what I’m trying to resolve. I’m not using a reverse proxy.

    Through further testing it looks like I’d missed adding the firewall rule to allow port 8080 TCP to the public zone; I currently have it added it to the ‘trusted’ zone which came from some online guides regarding rootlet podman but that didn’t resolve it. I’m sure I’d added it to the public zone previously as well to test with it not working so removed it, but it is now so I’ll have to keep testing a bit to ensure it’s repeatable.