Raised This Month: $ Target: $400
 0% 

Communication between servers on one machine


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 02-01-2013 , 11:41   Communication between servers on one machine
Reply With Quote #1

Is there any known way of communication between servers on one machine without pointing out their ports etc - just detecting if several servers are hosted from the same machine without giving any other information.
SpeeDeeR is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 02-01-2013 , 11:50   Re: Communication between servers on one machine
Reply With Quote #2

You can make a module or metamod plugin that uses IPC. You can use mysql. You can use files. Depends on what you want to use it for.
__________________
Impossible is Nothing
Sylwester is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 02-01-2013 , 12:18   Re: Communication between servers on one machine
Reply With Quote #3

I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.
SpeeDeeR is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 02-01-2013 , 12:55   Re: Communication between servers on one machine
Reply With Quote #4

The best method for that would be to check running processes using custom module.
With default amxx you could do it using mysql or check ports using sockets, but those methods are not very reliable.

Why do you need this anyway?
__________________
Impossible is Nothing
Sylwester is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-01-2013 , 23:40   Re: Communication between servers on one machine
Reply With Quote #5

Quote:
Originally Posted by SpeeDeeR View Post
I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.
If it's something you are supposed to know then you would already know this via other methods. If you don't already know this info then there is probably a reason for this. If you are having issues with a server that you pay for on a VM then you should ask the host.

Otherwise, you need to explain what you are actually trying to do because there is likely a better solution.
__________________
fysiks is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-02-2013 , 03:35   Re: Communication between servers on one machine
Reply With Quote #6

Quote:
Originally Posted by SpeeDeeR View Post
I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.
Why not just query the server?
https://developer.valvesoftware.com/wiki/Server_queries
__________________
xPaw is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 02-02-2013 , 03:48   Re: Communication between servers on one machine
Reply With Quote #7

He said he doesn't know the ports. And I already said you can use sockets, but it's not very good (how many ports are you going to check?).
__________________
Impossible is Nothing

Last edited by Sylwester; 02-02-2013 at 03:48.
Sylwester is offline
Reply


Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 20:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode