If anyone knows how to set PORTS when communicating with the netcode built in to GLBasic I would be very happy to hear how to. Or at least to know what GLBasic is using now? Can't open ports in the firewall if I don't know which ones? :-)
After a lot of digging in documentation I finaly gave up and just checked the process... why didn't I do that from the start? :-)
The ports in use is 1025 and 26000, the later seems to be the listening port.
SERVER: (10.10.0.101 in this case)
TCP 0.0.0.0:26000 0.0.0.0:0 LISTENING 3124
TCP 10.10.0.101:1026 10.10.0.101:26000 ESTABLISHED 3124
TCP 10.10.0.101:26000 10.10.0.101:1026 ESTABLISHED 3124
TCP 10.10.0.101:26000 10.10.0.100:1025 ESTABLISHED 3124
CLIENT: (10.10.0.100 in this case)
TCP 10.10.0.100:1025 10.10.0.101:26000 ESTABLISHED 2192
It's possible it may change each time the program is run...
I tried it several times and it was the same listening port every time. If that would change it would be quite useless as a net application.
Its changing because the netshutdown of hawknl doenst work fine. so used ports sometimes block after closing the app.
to me it block every time i close the client app... I really hope the network part will be fixed one day... there is still the same errors I had since i started using GLBasic...
What problems are you having, Acristo? Mine solved itself when I removed the NETNUMPLAYERS() command.
No, DirectPlay is obsolete. I'm using my own wrapper now.
I see, well I'm still not able to have a stable client/server demo, time to time they hung, if a client app is closed it leave the connection blocked for some time, If I try to connect a new client it did not find the server. So the basic of network is not working to me, I believe this new wrapper should be explained to us in a more detailed way.
@Hemlos : what about that mmo example you had :) would mind sharing it with us mere mortals? :D
Quote from: acristo on 2008-Oct-24
@Hemlos : what about that mmo example you had :) would mind sharing it with us mere mortals? :D
Oh yeah forgot about that, thanks for the reminder...i got sidetracked with midi binaries creation.
I will work on it, to make sure it still can funcntion like that, apparently glbasic has changed and testing needs to be done. It could be a while before im done. Come back and see how it is going in a few days, because i dont have alot of time to give to the networking, only a little.
Hello Hemlos... any updates ? :) regards