LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-06-2009, 02:35 PM   #1
felixllopart
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
Question VNC with multiple networks on server (it binds to the wrong address)


Hi,
I have a server running Linux Mint with two network devices, each one with its own IP address and its own network. wlan1 bound to 192.168.1.151 is connected to the router and the Internet and eth0 bound to 192.168.2.2 is connected to another computer in a local network.
Then I want to set up a VNC server on this machine to access it from an external network but when I start it it binds to IP 192.168.2.2. So I can connect to the VNC server only from the local network and not from the Internet.
The question is: can I tell the VNC server to bind to the other IP so I can access it from an external computer?

I hope I have exposed the problem clearly enough.
Thanks,

Fèlix
 
Old 03-06-2009, 07:31 PM   #2
felixllopart
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I found a solution for my problem.

What happened is that my host name was "thor", it was in /etc/hostname, and in /etc/hosts there is 192.168.2.2 bound to thor. The VNC server listened to that address.

I changed the hostname to another bound to the other address and now VNC listens from the correct IP.
 
  


Reply

Tags
multiple, networks, vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP Server with Multiple networks shahz Linux - Networking 22 03-18-2010 02:17 AM
Multiple networks/cards on a server jantman Linux - Networking 4 07-27-2006 03:20 PM
Multiple networks bonebrain Linux - Wireless Networking 3 11-17-2004 09:38 PM
dhcp server with multiple networks adamantium Linux - Networking 0 03-02-2004 09:16 AM
connecting multiple networks kierl Linux - General 2 03-14-2003 03:59 PM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration