Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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?

Posted

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

Posted
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

Posted
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?
Posted
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.

Posted

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).

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...