vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Thu Jun 20, 2013 4:38 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Portforwarding with Trendnet Tew-432brp
PostPosted: Tue Feb 23, 2010 6:52 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
Hey Guys :)

My objective is to run the gameserver on one computer and be able to login/ play from another computer by having the gameclient on a separate computer

I followed these instructions http://www.vbgore.com/Publishing_Your_Game

I followed the instructions fully and carefully, many times, but at the port forwarding step I set up port 10200 to be opened etc etc following
http://portforward.com/english/routers/ ... efault.htm

Check the port on http://www.canyouseeme.org/

and it says : ( I could not see your service on My external ip address on port (10200)
Reason: Connection timed out)

I ran the Game Server and open the Game Client on the same computer, logged in and game client game up with an error
(Unable to connect to the Game Server! It Is Offline or not connected to the internet.)

I've also was able to connect to the account server(though only with my REAL Internal IP Address and not 0.0.0.0)
Image

Code:
[INIT]

//This defines the ID of this server - you must change this for every server to the appropriate server number (defined below)
//This can also be defined in the server's EXE name. For example, 1.exe will force the ServerID = 1 while 3.exe will force
//the ID to 3. If the ID is defined in the EXE's name, this value is completely ignored. Using this, you can have multiple
//servers in the same directory instead of having a copy of all the files for each server.
ServerID=1

//How long a user must be idle for them to be disconnected
IdleLimit=300000

//How many milliseconds must pass with no packets being received to disconnect the client
//Helpful to find lost connections if combined with a pinging system
LastPacket=300000

//Starting position of new characters
StartPos=1-15-15

//Where characters go when they die
ResPos=1-15-15

//Port for the update server
UpdatePort=10201

//How many servers there is (as listed below)
Servers=1

[MYSQL]

//MySQL account username (default is "root")
User=root

//Password for the username specified above for the database - same as the password entered into the MySQL Instance Config
Password=test

//Name of the MySQL database (default is "vbgore")
Database=vbgore

//External IP of the MySQL host ("127.0.0.1" for hosted locally [on the same computer as the server])
Host=127.0.0.1

//Port of the MySQL database (default is "3306")
Port=3306

[SERVER1]

//Internal IP of the server (usually either 127.0.0.1 for localhost, or 0.0.0.0 for public) - public servers require correctly forwarded ports
IP=0.0.0.0

//External IP of the server (get from a site like www.whatismyip.org) - will be 127.0.0.1 if the internal IP is 127.0.0.1 and on the same computer
ExIP=( my ip found at http://whatismyipaddress.com/)

//The port of the server (between 1-65535, usually best to use numbers over 10000)
Port=10200

//The port used to communicate between other servers
ServerPort=10300

//The maximum number of users allowed on the server at once
MaxUsers=100

//Range of maps the server handles
//Map: Adds maps to the server's handle list. Either a range, number, or * (for all)
//Ex: Map=* - adds all maps to the server's handling
//    Map=1 - adds map 1 to the server's handling
//    Map=1-10 - adds maps 1 to 10 to the server's handling
//List is seperated by commas
//Ex: Map=1,2,5-10 - Server handles maps 1, 2 and 5 to 10
Map=*

///////////////////////////////////////////////////////////////
//Two server example:
//To use this, you must copy the server files to a new directory and
//set the second server's ServerID above to 2
//This will make the first map on one server (port 10200/10300) and the
//rest on the second server on port 10203/10303
//Just uncomment the lines, and delete the lines above
//** Make sure you modify NumServers in "Init", too! **
///////////////////////////////////////////////////////////////
'KEEP IN MIND THAT EVERY LINE WITH A ' OR // IN FRONT IS JUST AN EXAMPLE AND NOT USED BY THE SERVER!
'THAT MEANS THESE LINES BELOW!
'[SERVER1]
'IP=127.0.0.1
'ExIP=127.0.0.1
'Port=10200
'ServerPort=10300
'MaxUsers=50
'Map=1
'[SERVER2]
'IP=127.0.0.1
'ExIP=127.0.0.1
'Port=10203
'ServerPort=10303
'MaxUsers=50
'Map=2,3,4


i honestly believe that the problem is that my Router won't or can't port forward the port 10200/10300
Here is some info on my router : http://reviews.cnet.com/routers/trendnet-tew-432brp-wireless/4505-3319_7-31515168.html

if port forwarding doesnt work, then can you help me with DNS stuff? I'll start reading about it, just in case.



Thank You,
Heii


Last edited by NotGoodAtPixelArt on Wed Feb 24, 2010 8:49 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Tue Feb 23, 2010 7:40 pm 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
Odds are, your router does support port forwarding 10200. Make sure you check the client's IP/port as well.


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Wed Feb 24, 2010 8:42 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
So i have to port forward the server and client to my internal ip (cause in the picture below, where the red line is, i can't enter 0.0.0.0 it says its invalid, so i cant port forward to 0.0.0.0) and my external ip?
http://img202.imageshack.us/img202/7496/wdfs.png
(Thats what my router at 192.168.1.1 looks like on the Virtual Server)

i was just wondering if ; i've port forwarded it to my internal ip, now do i port forward it to my external ip also and 0.0.0.0 all in my virtual server?
(which is impossible since i can only port forward one ip to one port range ; 10200 to 10300)

I've also tried using DNS, Bleh, lol didn't work <--- probably doing everything wrong.



Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Wed Feb 24, 2010 9:05 pm 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
What's below the red lines should be your static internal IP.
Put 0.0.0.0 in Server.ini
Also, check firewalls on all computers and the router. If you're using 2 computers behind the same router to test, then your external IP won't work, us canyouseeme.


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Thu Feb 25, 2010 2:05 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
So i put my Static IP where the red lines were, 0.0.0.0 in server.ini, used me external IP for the Game Client ,

i don't know if this is the problem but ; I'm trying the game on the computer im on right now, so turning on the server and logging in the client and figured, if this doesn't work, how can it work if someone else who wants to log in?!?!?!

Also ; Which IP goes here (if i need to change it)
Code:
'********** Server IP ************
Public Const SERVER_IP As String = "Which Ip?"


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Thu Feb 25, 2010 5:02 pm 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
If the server is running on your external IP, then you can't run the client on another computer behind your router. Use CanYouSeeMe.org.

No code in the server needs to be changed for it to be public.

In Server.ini, in the server section, use:

Port - The port you forwarded in your router config

Internal IP - 0.0.0.0

External IP - Use what you find at WhatsMyIP.org

Client, in TCP.bas, in Sub InitSocket,

Code:
        SoxID = frmMain.GOREsock.Connect(GetIPFromHost("My.Server's.External.IP"), MyServerPort)


Where My.Server's.External.IP is the value found in Server.ini under ExIP

And MyServerPort is the value found in Server.ini for the server port


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Thu Feb 25, 2010 6:46 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
What do i change to log into the account server?

And im really doing everything you say and its really not working!!! think its best if i change ports?


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Fri Feb 26, 2010 3:31 pm 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
I don't use the account server, so I can't help you out there... You could try using a different port, but I see no reason why your ISP would block 10200. I may take a look at the account server later...


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Fri Feb 26, 2010 3:50 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
Okay I'll try another port to see if that's the problem, i seriously don't understand why the game isn't working online,

But, actually the Account Server is actually working and online but its login in the game that doesn't work


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Fri Feb 26, 2010 10:36 pm 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
Does the account server run on a different port than the server?


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Sat Mar 06, 2010 6:24 am 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
paxtenus wrote:
Does the account server run on a different port than the server?

No it doesnt.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My game still won't work online :[, I've read http://www.vbgore.com/Publishing_Your_Game A thousand times now and http://www.vbgore.com/forums/viewtopic.php?f=35&t=9372&start=0 Also, i still cant get it online!

1.changed everything that needed to be changed in Server.ini and GameClient.VBP
2.Went in "192.168.1.1" and added my ports to my static IP address
3.I've added from port 10200 to 10300 to Firewall
4.Went on http://www.canyouseeme.org and tested port 10200 and it said that it failed.
5.Then i opened my GameServer.exe and Opened the GameClient.exe and it didnt work.

Idk if my ISP is blocking the ports or something, but ive done everything the tutorials told me to do.

still when I use http://www.canyouseeme.org/ it says:
Error: I could not see your service on "my external ip" on port (10200)
Reason: Connection timed out
Suggestions : Your Firewall or ISP Might be blocking it



Also when I try and run client when server is running (on same computer as the server is running on) it says it's unable to connect.

Please help me, thank you!



Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Sat Mar 06, 2010 6:41 am 
Carmack's Pimple

Joined: Tue Dec 16, 2008 11:46 am
Posts: 63
If your Router is the Trendnet then what type of modem are you using?

I had issues when I upgraded my internet connection and they gave me a crappy SMC Networks Modem/Router and it set all the PC's connected to the network to some 27.x.x.x IP and everything worked before that was introduced.

I had to revert back to my original connection to get everything to work again.


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Sat Mar 06, 2010 3:18 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
paxtenus wrote:
Does the account server run on a different port than the server?

No it doesnt.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My game still won't work online :[, I've read http://www.vbgore.com/Publishing_Your_Game A thousand times now and http://www.vbgore.com/forums/viewtopic.php?f=35&t=9372&start=0 Also, i still cant get it online!

1.changed everything that needed to be changed in Server.ini and GameClient.VBP
2.Went in "192.168.1.1" and added my ports to my static IP address
3.I've added from port 10200 to 10300 to Firewall
4.Went on http://www.canyouseeme.org and tested port 10200 and it said that it failed.
5.Then i opened my GameServer.exe and Opened the GameClient.exe and it didnt work.

Idk if my ISP is blocking the ports or something, but ive done everything the tutorials told me to do.

still when I use http://www.canyouseeme.org/ it says:
Error: I could not see your service on "my external ip" on port (10200)
Reason: Connection timed out
Suggestions : Your Firewall or ISP Might be blocking it



Also when I try and run client when server is running (on same computer as the server is running on) it says it's unable to connect.

Please help me, thank you!



Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Sat Mar 06, 2010 3:46 pm 
Carmack's Pimple

Joined: Tue Dec 16, 2008 11:46 am
Posts: 63
When you added the ports in did you add the right internal ip 192.168.1.x Number?

At my works network the Ubuntu Server uses 192.168.1.106 and my office pc uses 192.168.1.108

Maybe you used the wrong one.

Wait a minute did you add your ip from whatsmyip into the port foward area?


Top
 Profile  
 
 Post subject: Re: Portforwarding with Trendnet Tew-432brp
PostPosted: Sat Mar 06, 2010 7:57 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
i added my internal ip the one i see when i type "IPCONFIG" in the Command Prompt.

Did i set this right :
Private Port : 10200
Public Port : 10300


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group