Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 4 1 2 3 4
Re: How to start an internet server [Re: D3D] #131685
06/04/07 01:33
06/04/07 01:33
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
You can't assign server ip directly. It will always default (AFAIK) to the lowest address on your computer. Hence since 212 is higher than 192, it will always have a 192 addy no matter what you do.

But from what I can tell, port-forwarding should be no problem in getting you from WAN to LAN.

I have posted a bug regarding the port assignment. I don't recognize your symptons but it's starting to sound like the same thing. Go to the bug forum and look for my -port bug posting. See if your problem looks similar. Then maybe you can "bump" that or post a new bug yourself.

Re: How to start an internet server [Re: fastlane69] #131686
06/04/07 03:44
06/04/07 03:44
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Don't understand what you meant with can't assign ip to server?

Replace this
Observer Mode: -sv -cl -ip 192.168.1.56 -port 2332 -pl TheObserver
Server Mode: sv -ip 192.168.1.56 -port 2332

With this?
Observer Mode: -sv -cl -port 2332 -pl TheObserver
Server Mode: sv -ip -port 2332

The client must input the ISP assigned ip of the connection used by the server otherwise he or she would stay on his her own LAN until time-out.


smile
Re: How to start an internet server [Re: D3D] #131687
06/04/07 19:00
06/04/07 19:00
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Quote:

Observer Mode: -sv -cl -ip 192.168.1.56 -port 2332 -pl TheObserver
Server Mode: sv -ip 192.168.1.56 -port 2332





Setting -ip on a server has no effect. Hence writing out the IP is irrelevant; The IP will be the lowest addy it finds on the machine. Hence if you have a 192 addy, it will always be that one.

Put another way, suppose you had a 168 addy on the same box as the 192. Even if you wrote the 192 addy explicitly (as you have above), 3DGS will still AFAIK assign the server the 168 addy.

So to answer your question, the above and the below...

Quote:

Observer Mode: -sv -cl -port 2332 -pl TheObserver
Server Mode: sv -ip -port 2332




...do exactly the same.

Re: How to start an internet server [Re: fastlane69] #131688
06/06/07 16:23
06/06/07 16:23
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Yes you are right. I thought I had to start with -sv -ip -port, but the engine will know the ip address.


smile
Re: How to start an internet server [Re: D3D] #131689
06/06/07 18:46
06/06/07 18:46
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Hi guys, thank you all for your support.
I've got it. You've to start the client with -port 2300 or else, but you can connect by session_connect or via -cl, that works.

That's all, thank you really much, and now have fun programming your own online games!

Re: How to start an internet server [Re: TSG_Torsten] #131690
06/06/07 18:50
06/06/07 18:50
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Quote:

You've to start the client with -port 2300 or else,




So it was a port error. Yeah I noticed bad connection behaiviour too a while back and traced it back to their port assignement. I posted it as a bug and it was confirmed but I'm not sure what the "fix" status is. I guess I should go back and check.

Re: How to start an internet server [Re: fastlane69] #131691
06/06/07 19:52
06/06/07 19:52
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
As the default ports range from 2300 to 2400, does this imply that with Gamestudio Pro you can host a maximum of 1000 players?


smile
Re: How to start an internet server [Re: D3D] #131692
06/06/07 23:26
06/06/07 23:26
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
There is no correspondance between ports and players. You can have 1000 players on 1 port or 1 player per port... doesn't make a difference (though in the latter case, you could only ever have 100 players).

No, the problem is that if you have more than one server on a machine, each has to have it's own port for clients to connect into. The current bug AFAIK makes it so that you can only assign one port no matter what. This is why having multiple servers on one computer was problematic. Furthermore, it is my guess that 2300 is the default port assigned.

Try this:

Set the -port of the server directly to 2333 and try to connect with a client. Did it work?
Now, set the -port again to 2333 and try to connect with a client and set THEIR -port as well. Did it work?

Re: How to start an internet server [Re: fastlane69] #131693
06/07/07 01:33
06/07/07 01:33
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Doesn't work in A6.60 and the port manager shows the server is dropping all ports needed for multiplayer. Then just sit there like nothing happend. No error message. Clients can't connect anymore. Don't know how it will work with A7, because I cannot even trial it until Conitec release my key.

The manual says clients don't need port assigned they obtain them automatically. The server can be run with port ranging from 2300 to 2400. What I don't understand is why I would want to run the server on any port? If the client doesn't have to know it because the engine will connect to the correct port!

So the client connects with -cl -ip -pl, and then the engine on client side will try all ports (2300-2400) on the server until one matches with the one i've set with -sv -port. Or try all in the case no port was set at all? Don't understand the logic behind it. Looks almost like ports are only good for when you own Gamestudio Pro as you can setup more than one server with that edition.

What I would like to know, is how the client application finds the server port if the server is behind a router. Does the server penetrate the router or vice versa? Or does the client-side application just try port 2300, 2301 etc etc until it matches!?

Oh and wait there is one reason why I would want the port feature. For instance when I have another application that must be run on one of the ports acknex engine uses for multiplayer functions and want to prevent any conflict between them.


smile
Re: How to start an internet server [Re: D3D] #131694
06/07/07 18:57
06/07/07 18:57
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Quote:

The manual says clients don't need port assigned they obtain them automatically. The server can be run with port ranging from 2300 to 2400. What I don't understand is why I would want to run the server on any port? If the client doesn't have to know it because the engine will connect to the correct port!




Still buggy in 6.6... thanks!

The client will scan automatically from 2300 to 2400 until if finds a 3DGS server. Therefore using -port on the client is unnecessary and that is another bug, that we actually have to manually input the -port on the client. What it should work like is that the client doesn't need to -port but the server does and the server doesn't need to -ip but the client does (unless session_connecting).

Do me a favor and put another bug report up. I fear mine may have been lost in the shuffle. I will then go and post my bug as an addendum to your post and a reminder to conitec to get it fixed soon!

Quote:

What I would like to know, is how the client application finds the server port if the server is behind a router. Does the server penetrate the router or vice versa? Or does the client-side application just try port 2300, 2301 etc etc until it matches!?




Exactlly, it will scan until found. If you are behind a router, your best bet is to use port-forwarding so the correct message automatically goes to the correct server.

Page 3 of 4 1 2 3 4

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1