GLBasic forum

Main forum => GLBasic - en => Topic started by: Moru on 2008-Oct-18

Title: netports
Post by: Moru on 2008-Oct-18
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? :-)
Title: Re: Netports
Post by: Moru on 2008-Oct-22
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
Title: Re: netports
Post by: MrTAToad on 2008-Oct-22
It's possible it may change each time the program is run...
Title: Re: netports
Post by: Moru on 2008-Oct-22
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.
Title: Re: netports
Post by: trucidare on 2008-Oct-22
Its changing because the netshutdown of hawknl doenst work fine. so used ports sometimes block after closing the app.

Title: Re: netports
Post by: acristo on 2008-Oct-23
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...
Title: Re: netports
Post by: Moru on 2008-Oct-23
What problems are you having, Acristo? Mine solved itself when I removed the NETNUMPLAYERS() command.
Title: Re: netports
Post by: Kitty Hello on 2008-Oct-24
No, DirectPlay is obsolete. I'm using my own wrapper now.
Title: Re: netports
Post by: acristo on 2008-Oct-24
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
Title: Re: netports
Post by: Hemlos on 2008-Oct-24
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.
Title: Re: netports
Post by: acristo on 2008-Nov-04
Hello Hemlos... any updates ? :) regards