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 / Help with DBP Multiplayer

Author
Message
staticloud
11
Years of Service
User Offline
Joined: 6th Dec 2013
Location:
Posted: 4th Jan 2014 20:57
Hey guys,
So I have been developing a multiplayer game for a while now and decided to try and play the game via 2 different computers in my home. Problem is I cant seem to get the client to find the host. I'am quite sure I have the native DBP commands set up right. Before this test I was successfully running multiple instances of the game on one computer with the connection set to Internet TCP/IP and the IP address set to localhost 127.0.0.1 ... One issue that is unclear to me is what host address should I use/search for.. The computer that I host from has a local IP 192.168.0.X and the client IP is 192.168.0.X+3, Both comps are connected to the same modem and have the same masked IP as found at www.ipchicken.com... I have tried hosting and searching the local and masked IP with no success. I have also tried Port forwarding the direct play ports TCP 2300-2400 to the 192.168.0.X .. Any Ideas what I have done Wrong?

This is the connection functions I have been using for host and client...



Thanks!
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 5th Jan 2014 02:02
I'm still a bit new to multiplayer, but try the IPs returned in the attached .EXE

I don't know how to do port forwarding so I've been using a VPN temporarily: HAMACHI VPN

D.D.

Attachments

Login to view attachments
staticloud
11
Years of Service
User Offline
Joined: 6th Dec 2013
Location:
Posted: 11th Jan 2014 22:55
Thanks for the response! In your program it returns the IP for my local comp as well as a second IP that does not match my mask ip.. What is the second IP?

Has anyone else experienced the problems I have been having? I have seen a few older posts but for some reason this community never seems to answer them..

thanks again
SamKM
15
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 12th Jan 2014 01:30
DBPro's native commands have always been pretty shaky, at least they have for me :/
It's a little more complicated that DBPro's commands, but you might want to look at the Multisync plugin, which is supposed to be awesome for networking!
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 12th Jan 2014 20:49 Edited at: 12th Jan 2014 20:53
Quote: "In your program it returns the IP for my local comp as well as a second IP that does not match my mask ip.. What is the second IP? "


I think it's possibly a modem or router address. I didn't write that little app, but it was originally posted here on the forums somewhere. Try doing a search for 'multiplayer' or the like and the original may turn up.

Like SamKM said though, I have heard good things about the MultiSync plugin, which is free I believe.

D.D.
staticloud
11
Years of Service
User Offline
Joined: 6th Dec 2013
Location:
Posted: 15th Jan 2014 19:15 Edited at: 16th Jan 2014 02:43
Hey Thanks, So i want to try multisync but when i go to your link and try any of the download links they just bring me back to the forum home page...? Can someone give me the files?

EDIT: So I was able to get V1.2 but I want V1.4.1 for the memblock commands.. can someone give me the .ddl.. Links to download do not work for me

Login to post a reply

Server time is: 2025-05-16 06:02:07
Your offset time is: 2025-05-16 06:02:07