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.

DarkBASIC Professional Discussion / Multiplayer by Internet - and what I must have for this (progs, registration in WWW)?

Author
Message
Leonid
User Banned
Posted: 11th Jan 2012 09:16
I want:
1. to be first player (as admin) in my game
2. play with other players using Internet
3. be an Internet-server for my net-based game

I have:
1. Computer
2. Windows XP
3. DarkBasicPro programs

Just say me Yes or No; is it possible to be a internet-server for my game without registration in WWW-organization (or I dont know what else I must to do) and without buying something like Windows Server (or I dont know something else)?

And; I had writting a program using 95% a DBP Help examples. What is wrong?

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 11th Jan 2012 13:03
Net commands are for LAN only.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 11th Jan 2012 16:45 Edited at: 11th Jan 2012 16:49
Yes you can create a web server using DBPRO without web hosting; XP Profession will handle it; but you have some learning to do. If you are serious about this then consider the following.

You need to get informed; get understanding about IP addresses and ports. They can be compared to phone numbers and phone extensions. Having a www address has nothing to do with hosting a game on your home PC.

You need to use a third party plugin to make network development more easy to manage. Lose the NET commands from the standard help files and look into MikeNet, MultiSync or Matrix1. You need to set your firewall; and in some cases you router; to allow people to connect to your PC using your game, and port forwarding... eek.

What would be ideal is for you to obtain a static IP address from your internet service provider. Otherwise you'd need to keep your client program instances informed of what IP address they would need to connect to; which would be easier if you did obtain a web host (www as you call it), since that would have a static IP which can forward your players to your dynamic IP; which can be distributed on the web server.

A static IP never changes, but dynamic IPs do. HTTP (www) address are actually names which point to an IP address. You can even host a website on your computer using a HTTP server such as WAMP.

But I must warn you, you need patience, concentration and plenty of time. Network programming gets complex very quickly. Every shared game process needs to be sent backwards and forwards, 100s maybe 1000s of game objects and variables would need to be synchronized using code, directly or indirectly. Players will disconnect, connect, crash the game, hack and do what ever they want; your skills need to overcome these things. And that is just the programming, you also have to maintain your server and any data storage used.

Without a clear plan or at least a documented design of your game with flow charts or some illustration of what must take place; it will be too confusing for you at this point. By the time you get into working on allowing the player to control online characters and objects, your code will exceed 1000s of lines, which requires full understanding. Just checking to see if a connecting player is really a player who is registered to play, who really downloaded your game, and obtaining their settings and validating them takes days, maybe weeks to develop alone.

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Jan 2012 12:43
Quote: "Just say me Yes or No; is it possible to be a internet-server for my game without registration in WWW-organization (or I dont know what else I must to do) and without buying something like Windows Server (or I dont know something else)?"

Yes. It's possible.

My signature is NOT a moderator plaything! Stop changing it!
Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 17th Jan 2012 03:38
I have a program sending realtime sensor data over the internet to display in an office on a graphical display using DBPro and Multisync.

I can testify that so long as you do the obvious, like port forwarding on the router and handle firewalls DBPro and multisync work like a charm for internet comms.

It will be a bit of work though. My Server program is 12000 lines and my client 6000.

So Yes, it's possible.
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 17th Jan 2012 04:15


is it possible to employ bypassing techniques? i.e. 2 firewalled clients handshake with a central server to acknowledge they both exist. Then send packets on the same port to each other, bypassing the server after the initial connection.

This is how some programs like teamviewer get around needing any sort of firewall/router setup

Login to post a reply

Server time is: 2026-07-10 04:42:22
Your offset time is: 2026-07-10 04:42:22