LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Making X server not binding 0.0.0.0 or listening (http://www.linuxquestions.org/questions/linux-general-1/making-x-server-not-binding-0-0-0-0-or-listening-829917/)

itz2000 09-02-2010 05:51 AM

Making X server not binding 0.0.0.0 or listening
 
Hey All,

I'm trying to execute X server (automatically), which will not bind to 0.0.0.0 (port 6000) - meaning X server will not listen on generic interface.

If it's possible, I'd prefer X server not to listen at all (and communicate through other IPC if needed), is there a way to make it not listening at all? -nolisten flag or something like that? (and do it automatically, every reboot).


Also, Is there a way to make X server bind to 127.0.0.1(localhost) instead of 0.0.0.0(generic interface)?


It should be in one of the configuration files or the start-up command to run X.


PLEASE DO NOT SUGGEST USING FW TO BLOCK IT, since it will not help me (I want to solve the problem, not to hack-myself-a-dirty-patch).


Thanks.

adamk75 09-02-2010 09:00 AM

Quote:

Originally Posted by itz2000 (Post 4085895)
Hey All,

I'm trying to execute X server (automatically), which will not bind to 0.0.0.0 (port 6000) - meaning X server will not listen on generic interface.

If it's possible, I'd prefer X server not to listen at all (and communicate through other IPC if needed), is there a way to make it not listening at all? -nolisten flag or something like that? (and do it automatically, every reboot).

Close... "-nolisten tcp". How you get it to do that by default, though, depends on how you are starting X. Are you using a display manager? If so, which one?

Adam


All times are GMT -5. The time now is 07:31 AM.