LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-31-2011, 05:42 AM   #1
MeNok
LQ Newbie
 
Registered: Aug 2011
Posts: 22

Rep: Reputation: Disabled
Smile Possible to bind two service with the same port?


Hi there ,

I wanna use the same port to connect to a kvm virtual machine , one with VNC and the other SPICE .Is that possible ? maybe i should ask if it`s possible for two apps LISTENING at the same port.I think it might work out just like 2 browsers surfing through the port 80 . Would be different or i have a misunderstanding about that ?

Shed your light~
Thx~
 
Old 08-31-2011, 05:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you detail your situation more, as opposed to your perceived solution to it? Generally, no it's not possible to do what you sound like you one. one process, one port, but I don't think this is actually at all relevant to what you sound like you're asking.
 
Old 08-31-2011, 06:16 AM   #3
MeNok
LQ Newbie
 
Registered: Aug 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
can you detail your situation more, as opposed to your perceived solution to it? Generally, no it's not possible to do what you sound like you one. one process, one port, but I don't think this is actually at all relevant to what you sound like you're asking.
sorry i did`t make it clear.
my situation is :
e.g. i have the 30250 port for spice service to connect the kvm instance , but i`d like to connect via vnc using the same port as well ( so tired with remembering so many different ports).I wonder whether it is theoretically possible or just DO-NOT advice ?
Thank you for replying~
 
Old 08-31-2011, 06:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, that's not possible. There are services which can handle mutliple protocols by inspecting the traffic coming from the client and then handing off to a sub process once it is clear what protocol is being used, but this is not common, and requires full integration between the parts. The process listening for vnc / spice is the KVM vm process itself, there is no central element to that, two vm's are wrapped under no common framework at all (libvirt provides metadata when used, but this doesn't wrap anything), so there is no chance at all to colaborate on anything. two VNC enabled vm's would equally need two different ports.
 
Old 08-31-2011, 06:59 PM   #5
MeNok
LQ Newbie
 
Registered: Aug 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
no, that's not possible. There are services which can handle mutliple protocols by inspecting the traffic coming from the client and then handing off to a sub process once it is clear what protocol is being used, but this is not common, and requires full integration between the parts. The process listening for vnc / spice is the KVM vm process itself, there is no central element to that, two vm's are wrapped under no common framework at all (libvirt provides metadata when used, but this doesn't wrap anything), so there is no chance at all to colaborate on anything. two VNC enabled vm's would equally need two different ports.
I get it~ Thank you Chris ,you`ve always been so helpful~
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do port-bind shellcodes work with port-forwarding? falc0n Linux - Security 2 04-27-2011 07:10 AM
how to configure bind service in linux 5.0 mksharma85 Linux - Newbie 4 06-28-2008 04:42 AM
Can I bind to a serial port using BIND Socket API?? venkat_p257 Linux - General 2 12-04-2007 05:49 AM
BIND service on Enterprise 4 ES ziz300 Linux - Networking 0 05-23-2006 06:55 AM
domian name service(BIND) divdude Linux - Networking 2 07-03-2005 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration