Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Socket Ports < 1025 ?

Author
Message
Rings
14
Years of Service
User Offline
Joined: 15th Sep 2009
Location:
Posted: 9th Dec 2019 13:35
the documentation says that the portnumber must be greater than 1024,
regardless of whether i use createsocket(to create a client) or CreateSocketListener(for the serverside) .

This is Imho totaly nonsense, you cannot connect to a TCP-Modbus Port( 502) to change data's with a
real world Hardware .

is that restriction Hardcoded ?

Can it be removed, leave a tip in the documentation.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 9th Dec 2019 14:58
On Windows you can probably get away with it, but on Mac and Linux you must be running as root to bind to a port less than 1024. AppGameKit doesn't impose any limits itself.
Rings
14
Years of Service
User Offline
Joined: 15th Sep 2009
Location:
Posted: 9th Dec 2019 20:15
thx paul for you statement about the difference between win/linux/osx.
so its not hardcoded. running as root can solve such.

i understand that for the serverside, but for clients also ?
make no sense for me.

A client, i mean that i want connect another server (on another hardware)with a port 502 for example.
means i will not listen to any port.

better i would do some test.....
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 9th Dec 2019 22:52
You are correct, clients shouldn't have a problem, it is only listening on a port below 1024 that requires root.

Login to post a reply

Server time is: 2024-04-25 19:51:51
Your offset time is: 2024-04-25 19:51:51