Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 911 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
How to start an internet server #131665
05/24/07 18:00
05/24/07 18:00
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!

I'm working on a small online chat and have just one question: How can i start a server in internet-mode. Everytime I start a server it shows only the LAN-IP, how can I change this? And what kinds of ports I have to open, UDP or TCP?

Thanxks for your answers!

Hi,

ich arbeite gerade an einen kleinen Online-Chat und habe eine Frage: Wie kann ich den Server im Internet-Modus starten? Jedesmal wenn ich den starte zeigt der mir auch nur meine LAN-IP an, und ich kann über meine DynDNS nicht connecten. Achja und welche Art von Port muss ich öffnen, UDP oder TCP?

Danke für jede Antwort!

Re: How to start an internet server [Re: TSG_Torsten] #131666
05/24/07 22:17
05/24/07 22:17
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
If you have a connection to the internet active with no routers or wireless or any other topology in between it should work automatically.

If you have a router between you and the net or you are using some tunneling IP tech, it may not work.

Re: How to start an internet server [Re: fastlane69] #131667
05/25/07 03:53
05/25/07 03:53
Joined: Mar 2003
Posts: 4,427
Japan
A
A.Russell Offline
Expert
A.Russell  Offline
Expert
A

Joined: Mar 2003
Posts: 4,427
Japan

You need to configure your router. I am not certain how to do this, since last time I did it was with a friend who is a network engineer. Firstly you go into your router with your web browser (check your router's manual for how to do this). Once inside I'm a bit vague on what we did, but if you look around in there you might find what you need. If I remeber correctly, we set a static IP for the machine we used as a server (otherwise the router might give it a different IP each time it is started) then we used .....ummmm what was it called... some acronym like for "demilitarized zone" [edit: DMZ -that's the one!] and set that to the static IP. You could then access the server from the web using the outside IP. To find your outside IP, search for "what's my IP" on Google.

I hope that was at least a little bit helpful.

Last edited by A.Russell; 05/25/07 03:55.
Re: How to start an internet server [Re: A.Russell] #131668
05/25/07 15:36
05/25/07 15:36
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,

I'm not a beginner doing port forwarding and opening ports. I've already hosted different game servers. But I need the protocoll the engine is using and how to "say" it that it should use the internet ip, it always take the lan ip.

Btw. do never use DMZ, if you use it you've no security.

Re: How to start an internet server [Re: TSG_Torsten] #131669
05/25/07 16:14
05/25/07 16:14
Joined: Jan 2003
Posts: 517
Illinois
G
giorgi3 Offline
User
giorgi3  Offline
User
G

Joined: Jan 2003
Posts: 517
Illinois
The default port range is 2300-2400. It uses both TCP and UDP (but mostly UDP). You can change it with:

Quote:


-port number
Through this command line option, a port address for TCP/IP client/server communication can be given. Valid ports are in the range 2300..2400. If no port is given, a default port address is assigned. A port address can only be given for the server - the client will connect to the right port automatically.






So set port forwarding to send these through your router to the server.

As far as the client goes, you have to specify the IP address via -IP


Quote:



-ip name
Through the -IP command line option the server name, the server's machine name, domain name or IP address can be given when starting a client in multiplayer mode. Example:

acknex office -cl -ip 169.254.73.28

connects to the server with the given IP address on the network or internet. The given name or address is available during gameplay in the predefined server_name string. If this command line option is not given, the server will be searched on the local network.





If you are trying to get the game to display the internet IP vs the Local IP, I don't know that it can be done.

Last edited by giorgi3; 05/25/07 16:18.

Giorgi3

10,000 parts flying in a close formation does not constitute an airplane. Some assembly is required.
Re: How to start an internet server [Re: giorgi3] #131670
05/26/07 07:14
05/26/07 07:14
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, I've done this already. It shows me everytime my LAN-IP. I've opened the port 2300 as UDP and TCP and forwarded to my IP. But it doesn't work.
The client connects via session_connect, so I don't need -ip

Re: How to start an internet server [Re: TSG_Torsten] #131671
05/28/07 11:41
05/28/07 11:41
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
No one knows something about it? I don't understand, are you all just want to programm LAN-Games? But why do you worry about Lags, LAN doesn't lag.

But Seriously: Has no one of you hosted an internet game server?

Re: How to start an internet server [Re: TSG_Torsten] #131672
05/28/07 12:57
05/28/07 12:57
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Get your IP Address, go to www.my-ip.com or some website that will tell you what your IPAddress is (unless you know where you can find it on your computer). That's the IP you will have others connect to.

1) Send them your Open Source Files and Levels now.
2) Open the Main level up
3) Hit Run
4) Server enter "-sv -cl" and hit RUN
5) Client enter "-cl -ip 000.00.00.000" and hit RUN
6) Ta da...should be running together.

This is all assuming your code is prepared for Multiplayer gaming, otherwise the story could end up differently.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: How to start an internet server [Re: ISG] #131673
05/28/07 20:49
05/28/07 20:49
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
What's about ports? Btw. already done what you have written, nothing is running at all, there is an error, No Server found. (But I'm using a dedicated server)

My code works fine, in LAN or via Hamachi (internet-based) it works without any errors.

Re: How to start an internet server [Re: TSG_Torsten] #131674
05/29/07 00:17
05/29/07 00:17
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
In case that you are trying to connect to your own server from the same PC you work on, you have to conect to localhost (127.0.0.1) NOT to yor internet-IP, this is only for other users. You cannot connect to your own Internet-IP, you would need a special kind of router, to avoid a so called "callback" or "loopback" - dont remember the name.


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Page 1 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