[Implemented] IP Binding ...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

[Implemented] IP Binding ...

Post by Shannara »

It would be nice to have the ability to bind to an IP, not just a port. This is extremely usefull for servers who have multi-homed IP addresses (most of them), as you dont want someone to connect to slashdot.org to get to the HackSlash.org game ;)
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Re: IP Binding ...

Post by AND51 »

Just found this old (and dusty *cough*) topic.

While working on my Linux server, I thought how useful it would be to be able to stick to certain network interfaces. Just like Postfix, Postgrey, Amavis and so on. Then you could write some add-ons for those programs.
I suggest to expand the CreateNetworkServer() command by a new, optional parameter which defines the IP/Interface to stick to.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: IP Binding ...

Post by moogle »

If it's this old, then I don't think we will get it anytime soon :)
Shannara has gone from the PB forums I think after asking for it so many times over the years.
Image
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Re: IP Binding ...

Post by AND51 »

Well, I just didn't want to create yet another thread for this request.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
buddymatkona
Enthusiast
Enthusiast
Posts: 252
Joined: Mon Aug 16, 2010 4:29 am

Re: IP Binding ...

Post by buddymatkona »

Forcebindip is a free DLL that should bind any EXE to an IP as long as the EXE uses only standard Winsock calls.
Seehttp://www.r1ch.net/stuff/forcebindip/
Post Reply