Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Xvfb to run an a wine background application that needs a valid display. It appears that it binds to *:x11. For security reasons I would like to avoid opening any unnecessary ports.

Is there any way force Xvfb to bind to localhost rather than *?

share|improve this question

1 Answer 1

up vote 4 down vote accepted
+25

Actually, if I understand your need correctly you can just skip TCP altogether.

Xvfb :0 -nolisten tcp

Afterwards this works:

DISPLAY=:0
xterm

And you can check yourself with netstat -ntlp | grep Xvfb that Xvfb has no ports open.

share|improve this answer
    
Thanks, yes this seems to work fine. For some reason I thought it uses localhost by default, but now I assume it uses unix sockets - which makes perfect sense. –  Zulan May 3 '11 at 17:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.