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 Discussion / How to connect client and server over the internet...(Help Benjamin)

Author
Message
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 3rd Apr 2006 03:25
I thought I had my chat program finished but it turns out that the client won't connect to the server. I originally tested them on the same computer and they both worked fine but when I tried to connect via another computer (no router) it didn't work. Originally I had the client connect to the IP address 255.255.255.255 but that didn't work so I changed it to the specific IP address that the server/host was connected to. That didn't work either. What do I do? How do I get the client connected to the server from a different computer over the internet?
EXEs:
http://forum.thegamecreators.com/?m=forum_view&t=75772&b=8

Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 4th Apr 2006 13:45 Edited at: 4th Apr 2006 13:47
It depends on how you are set up.

1. Are either of you operating behind a router?
2. Are either of you using a firewall?

If you can tell me the IP address you are trying to use aswell, that might help.

If you are directly connected to the internet, you should be able to retrieve your ip from typing ipconfig into command prompt. The host and client both then use that in the set net connection command.

You are are behind a router(not directly connected to the internet) then both you and the person don't use the same IP address. The host must use the IP address obtained from ipconfig, and then the client uses the host's internet address(which the host can obtain by going to http://www.whatsmyip.net). Of course, there is a bit more to it than this. You must also set up port forwarding on your router.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe) - 71%
Download the free version
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 5th Apr 2006 00:24
I'm not behind a router and I disabled the firewall as well as using the same IP for set net connection but no luck. I'm running out of ideas. You can find the source code here:
http://forum.thegamecreators.com/?m=forum_view&t=75803&b=1
What am I doing wrong? Can you get it to work on your PC?

Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Apr 2006 07:06
First, check firewall settings on both machines. Second, whats with ppl and trying to connect using a 255 address all the time? Third, umm, I guess third requires a router. If the server is on a router, make sure to route incoming traffic to the server on the port you're trying to using.

Aside from that, I haven't mess with DB's network commands.


SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 13th Apr 2006 13:51
Quote: "Second, whats with ppl and trying to connect using a 255 address all the time?"


255.255.255.255 in terms of IP addresses means *.*.*.*
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Apr 2006 20:39
but that's only going to work on local networks, right?


Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 14th Apr 2006 18:29
Thanks guys but I already figured it out. Check out my chat program called Dark Chat on the Program Announcements board.

Visit the official Chicago Rush website
http://chicagorush.servegame.com/index.php

Login to post a reply

Server time is: 2025-05-23 19:33:21
Your offset time is: 2025-05-23 19:33:21