Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to find a VNC server that can listen on a Unix domain socket instead of a TCP port (normally 5900).

I have not found any VNC server software supporting this. I do know what domain sockets are and want to use server and client on the same box. I know it's a weird requirement. I have a client for it. I modified one to support Unix sockets.

Does anyone know of a VNC server that supports Unix sockets?

share|improve this question

closed as off topic by MaQleod, 8088, Diogo, Mokubai, Randolph West Aug 7 '12 at 2:06

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Isn't there a server configuration setting that controls this? –  martineau Aug 7 '12 at 0:01
    
@martineau: Is there? I went thru it once. Please, let me know if there is one. –  agentsmith.android Aug 7 '12 at 0:07
    
Sorry, I was mistaken. –  martineau Aug 7 '12 at 0:14

1 Answer 1

You may be able to use socat to forward a UNIX domain socket to a TCP port. It is very flexible and lets you forward just about any source to any target.

share|improve this answer
    
Little more clarification. I want to use domain sockets because I need to use vncserver and client on the same host and there is no point in going thru network stack when you can have domain sockets. If I use socat, will vncserver avoid going thru network stack? If yes can you give a short example. Thanks. –  agentsmith.android Aug 7 '12 at 0:38
1  
Try this syntax: socat UNIX-LISTEN:/tmp/vlc TCP:localhost:9999. This listens for a client to connect to a UNIX domain socket (at pathname /tmp/vlc) and when the connection happens, forwards traffic bidirectionally to TCP port 9999 on host localhost. See the man page for socat for variations. This does not avoid traffic going through the network stack, but no traffic leaves your host. –  Fran Aug 7 '12 at 1:16
    
thanks. But I am looking at domain sockets for avoiding network stack. –  agentsmith.android Aug 7 '12 at 1:26

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