Raised This Month: $32 Target: $400
 8% 

How to get interface ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 05-04-2015 , 12:03   How to get interface ip
Reply With Quote #1

My server is listening 2 interfaces (2 ethernet adapters with internet ). Is there a way to find out through which interface a player is connected to the server (or sends queries)?
I've hooked this function NET_SendPacket.. unfortunately INetChannel pointer is always NULL.

Last edited by kadet.89; 05-04-2015 at 12:54.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-04-2015 , 17:55   Re: How to get interface ip
Reply With Quote #2

As far as I'm aware, srcds binds to just one interface when it launches. I know looking at my Linux server, it just has a bind on my eth0 interface... although I only have eth0 and lo on this box.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
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

Forum Jump


All times are GMT -4. The time now is 23:11.


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