Close network connection to client

All other Source.Python topics and issues.
Tetragromaton
Junior Member
Posts: 20
Joined: Tue Mar 03, 2020 6:39 am

Close network connection to client

Postby Tetragromaton » Tue Mar 10, 2020 6:24 pm

Hey guys, is there anyway to disconnect client from server by the way of closing connection to them, so client will just see that there is a server experiencing some troubles | Auto disconnect in N seconds ?
Is this possible to realise at the sourcepython level ?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Close network connection to client

Postby L'In20Cible » Fri Mar 13, 2020 2:36 am

Tetragromaton wrote:Hey guys, is there anyway to disconnect client from server by the way of closing connection to them, so client will just see that there is a server experiencing some troubles | Auto disconnect in N seconds ?
Is this possible to realise at the sourcepython level ?

I don't think there is an easy way to do that. You could probably achieve something like that with a lot of hooking into the networking stuff, but it doesn't worth the effort in my opinion. Why is simply kicking the player not an option?
User avatar
Hymns For Disco
Member
Posts: 32
Joined: Wed Nov 22, 2017 7:18 am
Contact:

Re: Close network connection to client

Postby Hymns For Disco » Fri Mar 13, 2020 2:45 am

If running a linux server, you could try use the iptables command to block the client's address.
This is probably the cleanest way to artificially force a connection drop.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 31 guests