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 / How do I make a network game work over the internet?

Author
Message
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Mar 2010 20:41
I have made some simple LAN games, but I want to know how to make one that I can send to a friend and do a client-server or pier-to-pier connection over the internet.

Can it be done with two computers with one as host and the other as client? Or do I have to have an ISP type host? I don't fully understand how an over-the-internet game works differently than a simple LAN game.....

Help!

The fastest code is the code never written.
Dragon Knight
19
Years of Service
User Offline
Joined: 10th Jan 2007
Location: Newcastle
Posted: 20th Mar 2010 21:17
A few things... you have to do...

Check out port forwarding if any of the two computers are behind a router.

Grab the IP address, and connect with that and wolla , same as the LAN.. but now it's over the big scary internet. Watch out for missing packets / corrupt data.. can be a pain.

I'm pretty sure there is a few packages for DBP that do online networking

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Mar 2010 21:24
For testing purposes, could I set all this up and use one of my lan machines to simulate it (as if that machine was not on my network)?

The fastest code is the code never written.
JavierTF
16
Years of Service
User Offline
Joined: 15th Feb 2010
Location: Going out, to the right
Posted: 20th Mar 2010 22:16 Edited at: 20th Mar 2010 22:24
Hi

Take a look to DarkNet.

http://darkbasicpro.thegamecreators.com/?f=darknet

May be it will be useful to you.

Bye
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Mar 2010 22:55
I don't want to buy something that I should be able to do myself.... When I said I have done this type of stuff before, I did it in C++/DX. I can't even get two of my computers to do a simple LAN in DBP. Here's what I have so far.... It's not working.

What am I doing wrong?

The fastest code is the code never written.
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Mar 2010 23:51
OK. I downloaded Multisync v1.4.1 and I can't figure out how to make it work over the internet. I see the commands in the manual, but I still don't have a clue....

The fastest code is the code never written.

Login to post a reply

Server time is: 2026-07-26 21:12:32
Your offset time is: 2026-07-26 21:12:32