hsncorrosion Posted July 13, 2007 Posted July 13, 2007 I am running a cgi masterserver on a windows xp pro machine. on the same computer I am running a game server so the master server registers the game as localhost but then it tells the clients that the online server is localhost and theirfor attempts to connect the game to localhost but it fails because the client has no server. How can I make the game server connect to the master server with the address game.haroldsearchnetworks.net and not localhost? Quote
VaKo Posted July 13, 2007 Posted July 13, 2007 You need to setup game.haroldsearchnetworks.net to point to your public IP and make sure the correct ports are publically accessible. This is basic DNS stuff, you need to do some reading mate. Quote
hsncorrosion Posted July 13, 2007 Author Posted July 13, 2007 I know that, I did that months ago... If I tell the server to use the public ip address ie: that domain name it times out EDIT The masterserver is checking the game server and realizes it is on localhost can I trick it in to thinking that it is not? Quote
SomeoneE1se Posted July 13, 2007 Posted July 13, 2007 or edit your host file to point game.YourDomainHere.org to 127.0.0.1 if you ask how to do that I won't help you in this thread anymore... Quote
hsncorrosion Posted July 14, 2007 Author Posted July 14, 2007 WOW! Can't beleve I didn't think of that! Thank you that should do it! Quote
hsncorrosion Posted July 14, 2007 Author Posted July 14, 2007 Sorry for double post Here are the changes I've tried to the hosts file 127.0.0.1 game.haroldsearchnetworks.net That Didn't work game.haroldsearchnetworks.net localhost That Didn't work game.haroldsearchnetworks.net game.haroldsearchnetworks.net That Didn't work game.haroldsearchnetworks.net 127.0.0.1 That Didn't work Every one I tried (one at a time) my server gave me this Status Hostname Map Description Mode Players Ping Protocol Time Modified 127.0.0.1 Main 0 0 0 122 10 1184373244 Quote
SomeoneE1se Posted July 14, 2007 Posted July 14, 2007 game.haroldsearchnetworks.net game.haroldsearchnetworks.net That Didn't work did you think this would work?.. and how would it work? Status Hostname Map Description Mode Players Ping Protocol Time Modified 127.0.0.1 Main 0 0 0 122 10 1184373244 is this an error message? because it seem like it's working Quote
hsncorrosion Posted July 14, 2007 Author Posted July 14, 2007 It is showing the hostname as 127.0.0.1 so anyone playing the game with connect to their localhost which would not be running a server. Quote
VaKo Posted July 14, 2007 Posted July 14, 2007 Yes, which is why $address needs to be changed then... Quote
SomeoneE1se Posted July 14, 2007 Posted July 14, 2007 It is showing the hostname as 127.0.0.1 so anyone playing the game with connect to their localhost which would not be running a server.wait.. what connects? Quote
hsncorrosion Posted July 14, 2007 Author Posted July 14, 2007 Yes, which is why $address needs to be changed then... I dont know what that is, can u explain. @SomeoneE1se The master server runs as a cgi script on the server when a game server connects it logs it and when a client (game player) connects to it the server reports the ip address to them and they can play the game. The problem is the game server is on the same ip address and the same machine so when the masterserver logs the ip it logs 127.0.0.1 so anyone who tries to connect on the client side cannot because they are being directed to their own pc which has no server. Quote
VaKo Posted July 14, 2007 Posted July 14, 2007 What you needs to do is force the perl scrip to connect to the domain given, not the localhost but playing with the $address variable. I'm not sure, but I have a vague feeling you can just replace $address with the domain name and it would work (given the right ports being forwarded). Quote
SomeoneE1se Posted July 14, 2007 Posted July 14, 2007 What you needs to do is force the perl scrip to connect to the domain given, not the localhost but playing with the $address variable. I'm not sure, but I have a vague feeling you can just replace $address with the domain name and it would work (given the right ports being forwarded).props to VaKo he's right do what he tells you too Quote
hsncorrosion Posted July 14, 2007 Author Posted July 14, 2007 I found an easy way to fix my problem Use a free cgi host then the game server is seperate! lol Fixed Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.