Skip to content

How to make XRDP to only listen on eth0 interface and not on Wi-Fi #2445

Closed Answered by matt335672
tapir asked this question in Q&A
Discussion options

You must be logged in to vote

This may depend on your xrdp version.

On recent ones, you need to change the port= setting in /etc/xrdp/xrdp.ini. By default xrdp listens on port 3389 on all interfaces, and you can see this with ss :-

ss -alnp \( sport = :3389 \)
Netid  State   Recv-Q  Send-Q   Local Address:Port   Peer Address:Port Process  
tcp    LISTEN  0       2                    *:3389              *:* 

On a virtual machine with enp1s0 having an IP address of aa.bb.cc.dd, I can add this to /etc/xrdp/xrdp.ini:-

port=tcp://aa.bb.cc.dd:3389

Then:-

$ ss -alnp \( sport = :3389 \)
Netid  State   Recv-Q  Send-Q   Local Address:Port   Peer Address:Port Process  
tcp    LISTEN  0       2        aa.bb.cc.dd:3389        0.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tapir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2444 on December 01, 2022 16:47.