Game Development Community

Adding IP Address

by Terry Barlow · in Torque Game Engine · 04/23/2012 (1:56 pm) · 12 replies

what file do I add the IP address to so my clientes can connect to my Dedicated Server once I get it running that is thanks

Sincerly
Terry

About the author

Send all correction E-Mails to: h0td0g4@yahoo.com Unskilled, having fun, playing around, and helping out!


#1
04/23/2012 (4:50 pm)
Is it a static ip?
If it is static a quick solution would be: Making a bat file and putting this in it:
yourgame.exe -connect 127.0.0.1

Or if you wanna call it by code use this line:
connect($JoinGameAddress);
#2
04/23/2012 (4:54 pm)
it is a static so is there a file I can put the IP in so I can compile it into my client installer so I can give it to a friend and see if he can loginto my game and check it out?

tbarlow
#3
04/23/2012 (5:20 pm)
If you just want to test the dedicated server, i recommend just making the bat file and writing
yourgame.exe -connect 127.0.0.1
in it. It is the fastest way to set it up afaik.
Else create a gui file with a button where it says (pseudo) onClick do: connect($JoinGameAddress);
Edit: Of course changing the yourgame.exe to the name of your executable and change 127.0.0.1 to your ip address.
#4
04/23/2012 (5:24 pm)
Btw, chances are your friend is not gonna be able to connect to your server.
You will probably be blocked by your router unless he connects over lan. If he connects over the internet you will need to bypass your router or any other firewall that might be blocking your game.
If he connects over lan you should be fine.
#5
04/23/2012 (5:32 pm)
ya I know I will open the port so he can get to it thanks for the info hey when I set up my main server and make it a dedicated server do I need to have the whole Torque eng and all sdks and vc++ all on there as well or can I just make it a bare bone on the server (what files do I need) and also are there any toold that I can use to connect to the server remotly to send maps and put stuff in the game anywaty thanks for the help

Terry
#6
04/23/2012 (5:41 pm)
You don't need the source files(like the sdks and vc++), you only need them for compiling.
--
Depends on your server setup, if you are running something like a VPS i believe you can use ftp to transfer new maps to the server.
I think you have to be the local client to access the world editor tools.
But you can try to access the world editor remotely and see what happens.
#7
04/23/2012 (5:46 pm)
ok thanks I read it some where but right now I can find it agian how do I start the Dedicated server agian I belive it was

mygame.exe -dedicated -mission (mission file

and where should the mission file be thanks agian

tbarlow
#8
04/23/2012 (5:48 pm)
and is the IP tcp or udp thanks agian

tbarlow
#9
04/24/2012 (2:21 am)
To start a dedicated server via a bat file:
mygame.exe -dedicated -mission "levels/Empty Room.mis"

The ip is tcp i believe.
#10
04/24/2012 (2:23 am)
An example of where your level could be:

./game/mygame.exe
./game/levels/mymission.mis

Then in the bat write:
mygame.exe -dedicated -mission "levels/mymission.mis"
#11
04/24/2012 (12:31 pm)
ok thanks

tbarlow
#12
11/29/2012 (10:06 pm)
I get this when I run the delow command and also any clue Y my client will run really laggy

mygame.exe -dedicated -mission (mission file

and well it seemed to work I can connect to it with a Client now the client is really loggy not sure Y that is yet but I guess 1 thing at a time :) anyway when I start the server is scrolls this

Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Got Connect challenge Request from IP:10
Got Connect Request
Connect request from: IP:10.
CADD: 1934 IP:10.
*** Sending mission load to client: levels/EmptyTerrain.mis
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3Ack to index: 2
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].
Received info request from a master server [IP:209.90.70.74:28002].
Sending heartbeat to master server [IP:209.90.70.74:28002]
Received info request from a master server [IP:209.90.70.74:28002].


that 209.90. IP is not my IP mine starts with 70.58. so where is that IP comeing from and how do I change it and about my laggy Client to I post that here as well or where do I ask about that at anyway thanks for the help

tbarlow