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.

Author
Message
print TheGourglex
13
Years of Service
User Offline
Joined: 24th Dec 2012
Location:
Posted: 21st Mar 2013 16:09
I want you to give me a good introduction to networking system, a subject about which I do not know ...
Initially, I would like to know how to do an online chat, in which my friend could talk to me. How to start?? I know nothing about it!
I also wonder how I let my computer server such as chat, or anything of connections to per per (I think. I want you to teach me the types of networks ...).
Also would like to know one thing:
I have two pc, the first uses the internet for the other router. Can I put one of these pc as server and the other as a client? Or both use the same ip and it would not work?
I would also like to know how I can get the client ip, so I send the data.
Remember, I'm brazilian ...
Thank you in the warmth of the forum!

"Better than do is try"
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 21st Mar 2013 17:29
http://forum.thegamecreators.com/?m=forum_view&t=99188&b=5
this is a TCP/IP plugin for dbp.
you can create server and client with it.

you also can run server and client using router, but then you will have to forwards a remote AND local ports for that.
so i highly recomend to use server as a non-wireless internet spot. and for the client it doesnt metter.
to connect to server using clients, you will have to know 2 things:
1) Remote Port (that setted up on server side)
2) Remote IP (the remote IP of the server's PC)

to recive the IP, you can use the whatsmyip.com website (note that if you have some kind of dialer for your server's internet, you mostely will have DYNAMIC IP, so that means your server's IP gonna be changed everytime you do restart the server's PC)


so.. i gave you a "where to start" info and i also gave you "how it works"

i hope i answered on most of your questions.
if you still have more of those, feel free to post anything you want, and me and other TGC users will be happy to answer.

this is my old MMORPG i was been working on long long time ago.
http://forum.thegamecreators.com/?m=forum_view&t=70884&b=8
it will give you a base idea what networking is capable of.

and i was using the same plugin i suggested.
sure there are lots of TCP/IP plugins that actually works perfect! but i like the Multisync.

Advanced Updater for your games!
print TheGourglex
13
Years of Service
User Offline
Joined: 24th Dec 2012
Location:
Posted: 23rd Mar 2013 18:44
Thank you!
But i found an error...
I made two programs, a server and a client
server:

client:


My computer stay like the server, and my notebook (with the internet of the router) stay like the client. It worked!
But, when i tested in other computer, with my computer like server, did not work!!!!
I would like to know here I messed up...
I'ld like to know how the modem works and all about 'ports', like the 8181.

"Better than do is try"
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Mar 2013 19:02
192.168.1.2 is your LAN address. It won't be accessible from outside.
You need to find your actual IP addres (try http://www.whatsmyip.org) and connect to that. This address may change over time, which is something you might want to look out for in the future.

For successful connection from outside your own network you might need to forward the ports you're using if you're behind a router / firewall. How this is done depends on the router, I still haven't gotten it to work with my latest one..


"Why do programmers get Halloween and Christmas mixed up?"
print TheGourglex
13
Years of Service
User Offline
Joined: 24th Dec 2012
Location:
Posted: 23rd Mar 2013 19:50
I got my ip adress. I replaced the ip in the clien code's. I deleted the parameter ,ip$ of the line "NET HOST Val(Plrs$),ip$" (server). In both codes i deleted the

. But didn't work Give the same error, "timed out!"
What do i?

"Better than do is try"
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Mar 2013 20:01
if u getting timed out from client by trying to connect to your own server, it means that you entered the wrong IP andress, or you been blocked by firewall (at client or server)
also there is a chance that you didnt seted up the right Port.

Advanced Updater for your games!
print TheGourglex
13
Years of Service
User Offline
Joined: 24th Dec 2012
Location:
Posted: 23rd Mar 2013 20:33
Tell me more about the ports...

"Better than do is try"
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Mar 2013 21:29
http://en.wikipedia.org/wiki/Transmission_Control_Protocol
this may help you.

i suggest you to print it, sit back, relax, read it!
try to understand how it works

Advanced Updater for your games!

Login to post a reply

Server time is: 2026-07-06 20:52:45
Your offset time is: 2026-07-06 20:52:45