Jump to content


Photo
- - - - -

[39dylib]Register/Login


  • Please log in to reply
23 replies to this topic

#1 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 08 June 2012 - 10:46 PM

  • Title: Register/Login with 39dylib.
  • Description: This is a basic example of how to make an online connection from client to server and server to client. With a Register/Login feature also included!
  • GM Version: GM:8, GM:8.1, GM:Studios.
  • Registered: Yes
  • File Type: .zip (with 2 .gmk files inside)
  • File Size: 286 KB
  • File Link: 2_Login & Register
  • Required Extensions: 39dylib
  • Required DLLs: None
Summary
This example offers a simple yet effective way to make an online connection with a unlimited amount of clients and a server. With a Register/Login feature also included, with some "awesome" features included (Textbox effects)

Related Online Tutorials:

1_Basic Connection
2_Login & Register

Terms Of Use:

Your free to use this example as a base for your online games commercial and non-commercial with out credit.
Your allowed to re-distribute this example ONLY if you give me credit as the creator :)

Have fun!

Edited by Debels, 09 June 2012 - 05:01 AM.

  • 1

#2 Neri

Neri

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 09 June 2012 - 07:17 AM

Good example! But I have a question, does it require hamachi for certain computers to connect?
  • 0

#3 Neri

Neri

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 09 June 2012 - 08:05 AM

My friends can't connect to the server, what do I do to make it work?
D:
  • 0

#4 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 03:01 PM

My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)
  • 0

#5 Neri

Neri

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 09 June 2012 - 05:40 PM


My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)

Umm.. I can't understand, how does it change the IP adress the server connects to?
I thought you set the IP adress somewhere in the scripts but I can't seem to find anything related to it...
EDIT: I found an IP adress thingy in the client, but now even I can't connect, what did I do wrong?
(P.S. I have a feeling my noob days are coming back, bigger then ever xD)

Edited by Neri, 09 June 2012 - 05:45 PM.

  • 0

#6 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 06:45 PM


My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)

I'll give it a go. :P
also my default log-in is:

Username admin (both lower-cased)
Password password

SUPER simple! xD
but I have no idea if it'll work your way. Posted Image
EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know. :P
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router! Posted Image
please help! Posted Image

Edited by creators124, 09 June 2012 - 06:52 PM.

  • 0

#7 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 06:48 PM



My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)

I'll give it a go. :P
also my default log-in is:

Username Admin
Password password

SUPER simple! xD
but I have no idea if it'll work your way. Posted Image


It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P


Umm.. I can't understand, how does it change the IP adress the server connects to?
I thought you set the IP adress somewhere in the scripts but I can't seem to find anything related to it...
EDIT: I found an IP adress thingy in the client, but now even I can't connect, what did I do wrong?
(P.S. I have a feeling my noob days are coming back, bigger then ever xD)



You should first look at some tutorials of how Online systems work, because the server doesn't connect to an IP, the server listens in a specific port to search for new clients.
In the client is where you define the servers IP.
Did you port forward?, Is your IP between the ""?

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know. :P
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router! Posted Image
please help! Posted Image


Did you port forward the port 20000? in the TCP?
Did you entered you IP between the ""?
Did you made new rules in the Windows firewall?

Edited by Debels, 09 June 2012 - 06:56 PM.

  • 0

#8 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 06:51 PM




My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)

I'll give it a go. :P
also my default log-in is:

Username Admin
Password password

SUPER simple! xD
but I have no idea if it'll work your way. Posted Image


It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

Umm.. I can't understand, how does it change the IP adress the server connects to?
I thought you set the IP adress somewhere in the scripts but I can't seem to find anything related to it...
EDIT: I found an IP adress thingy in the client, but now even I can't connect, what did I do wrong?
(P.S. I have a feeling my noob days are coming back, bigger then ever xD)




You should first look at some tutorials of how Online systems work, because the server doesn't connect to an IP, the server listens in a specific port to search for new clients.
In the client is where you define the servers IP.
Did you port forward?, Is your IP between the ""?

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know. :P
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router! Posted Image
please help! Posted Image



Did you port forward the port 20000? in the TCP?
Did you entered you IP between the ""?
Did you made new rules in the Windows firewall?

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

ok...
yes I port forward the client but I cant port forward the same ports for the client.exe and server.exe!
also I'm using norton 360 firewall not windows. :P
and it is confusing because I don't mess with it. xD
also yes I put both the ip from the http://whatismyipaddress.com/ and the 102.168.1x
please help. :(

Edited by creators124, 09 June 2012 - 08:58 PM.

  • 0

#9 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 08:48 PM





My friends can't connect to the server, what do I do to make it work?
D:


Well this example is running on the port 20000 and in the ip "127.0.0.1" which mean local host, if you want to let your friends try/use it, follow this steps:

1.- Go to this website: http://whatismyipaddress.com/ or any website that gives you your IP address.
2.- Go to your routers ACP and port foward the port, follow this steps to find where your ACP is:
Press windows key and R at the same time, when it pops out write this inside the textbox: cmd.exe and press enter
Then a black window with some text in it will pop out, then write ipconfig inside it and press enter
Then scroll to the top and the first: "Default Gateway"
It will have some numbers on the right side like: "190.58.1.1"
When you find that Default Gateway value enter it in your browser and a window with 2 text-boxes will pop out and the default username and password are:

Username Admin
Password [nothing]
Username Admin
Password 12345
Username [nothing]
Password 12345

Those are some default username and password :), soon i will make a full guide in my Gaming Central Website :)

I'll give it a go. :P
also my default log-in is:

Username Admin
Password password

SUPER simple! xD
but I have no idea if it'll work your way. Posted Image


It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)
  • 0

#10 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 09:09 PM



<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)
  • 0

#11 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 09:16 PM




<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)

Just the server :)
  • 0

#12 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 09:44 PM





<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)

Just the server :)

which ip addres:
the internal ip of the computer holding the server or the wan ip?
wait!
I think I got it! Posted Image
I put the internet ip! :P xD
I don't know if you can connect to me. Posted Image
  • 0

#13 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 09:48 PM






<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)

Just the server :)

which ip addres:
the internal ip of the computer holding the server or the wan ip?
wait!
I think I got it! Posted Image
I put the internet ip! :P xD
I don't know if you can connect to me. Posted Image

The ip you got from whatismyipaddress page :P
  • 0

#14 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 09:53 PM







<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)

Just the server :)

which ip addres:
the internal ip of the computer holding the server or the wan ip?
wait!
I think I got it! Posted Image
I put the internet ip! :P xD
I don't know if you can connect to me. Posted Image

The ip you got from whatismyipaddress page :P

no that is the wan ip. :P
the internet ip that I got from going to my router's website (all you need is you default gateway address to go there) and went to advance home and I saw the ip for internet: 192.168.0.2 to connect to my server! :D
  • 0

#15 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 09 June 2012 - 09:57 PM








<snip getting too long. :P >
It does if you port foward correctly the port 20000 (or the port you want to use) and change your ip :P

change my ip?
also:

EDIT:
actually I did it extremely fast! xD
no noob to my router, just to let you know.
but when I try to host the server here it no work!
only works when I try to connect to the server, when he is not using a router!
please help!

Change the IP on the client to your ip :P, i answered the edit on the third edit :)

yeah I saw it! xD
also I changed my firewall's traffic rules to let port 20000 to go in/out! :D
do I port forward the client.exe or the server.exe?
then I'll try to see if it works now! :)

Just the server :)

which ip addres:
the internal ip of the computer holding the server or the wan ip?
wait!
I think I got it! Posted Image
I put the internet ip! :P xD
I don't know if you can connect to me. Posted Image

The ip you got from whatismyipaddress page :P

no that is the wan ip. :P
the internet ip that I got from going to my router's website (all you need is you default gateway address to go there) and went to advance home and I saw the ip for internet: 192.168.0.2 to connect to my server! :D

I use the ip that gives me the whatsmy........ and it always work :P, but i think both methods are ok :)
  • 0

#16 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 09 June 2012 - 10:04 PM


<snip way too long again! xD >
no that is the wan ip. :P
the internet ip that I got from going to my router's website (all you need is you default gateway address to go there) and went to advance home and I saw the ip for internet: 192.168.0.2 to connect to my server! :D

I use the ip that gives me the whatsmy........ and it always work :P, but i think both methods are ok :)

I seem never to be able to connect with the wan ip. Posted Image
I'll try anyway. Posted Image
EDIT:
nope no dice! Posted Image
only the internet ip works! Posted Image
can you connect to me or you don't want to?

Edited by creators124, 09 June 2012 - 10:11 PM.

  • 0

#17 Neri

Neri

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 10 June 2012 - 10:26 AM

[quote name='Debels' date='09 June 2012 - 06:48 PM' timestamp='1339267722' post='3985462']
You should first look at some tutorials of how Online systems work, because the server doesn't connect to an IP, the server listens in a specific port to search for new clients.
In the client is where you define the servers IP.
Did you port forward?, Is your IP between the ""?
[quote]
yes the IP is between the "", I'll try to find tutorials...
  • 0

#18 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 10 June 2012 - 01:26 PM

yes the IP is between the "", I'll try to find tutorials...


Here is a tutorial of how to port forward, since that seems to be the problem that everyone has http://portforward.com/

Edited by Debels, 10 June 2012 - 01:26 PM.

  • 0

#19 Neri

Neri

    GMC Member

  • GMC Member
  • 59 posts
  • Version:GM:Studio

Posted 10 June 2012 - 02:58 PM


yes the IP is between the "", I'll try to find tutorials...


Here is a tutorial of how to port forward, since that seems to be the problem that everyone has http://portforward.com/

This website brings me to a giant list of stuff that I have no clue what to do with it, OR a program that needs to be BOUGHT.
  • 0

#20 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 10 June 2012 - 03:03 PM



yes the IP is between the "", I'll try to find tutorials...


Here is a tutorial of how to port forward, since that seems to be the problem that everyone has http://portforward.com/

This website brings me to a giant list of stuff that I have no clue what to do with it, OR a program that needs to be BOUGHT.


Just read the instructions on that page, it really isn't that hard when you read stuff :P
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users