startNetGame
Blitz3D Forums/Blitz3D Beginners Area/startNetGame
| ||
I am trying to make a game that uses startNetGame() to make an online game, but it doesn't seem to connect my laptop and desktop. Anyone know whats wrong? |
| ||
Maybe it is this: when you start up StartNetGame, it says you can leave your IP address blank, but you should enter it if you want to create anything other than a local connection. |
| ||
Just tried, doesn't seem to work |
| ||
Make sure it is the right IP address. Go to Start->Run->Enter "cmd"->Enter "ipconfig" If that doesn't work, it could be something firewall related. I'm afraid I don't know how you can solve that. |
| ||
I always test net stuff with a 127.0.0.1 IP bnefore trying it with another computer. In the case here, are you using a router and 192.168.xx.xx local IP range? You may need to check your Router config and allow for the port(s) you want to use for your app to be forwarded. Ensure Blitzcc.exe and IDE.exe are not blocked by your firewall too. |
| ||
I have a cable modem, and then a wireless router. Ill try the 127.0.0.1 now @Warner - Yes, I have tried my IP |
| ||
OK, yes it is just my routers firewall. Completely forgot about 127.0.0.1 Thanks Ill see what I can do. I have a NetGear WNR 2000 if anyone knows anything about it. |
| ||
www.portforward.com Has lots of useful information. You have an advantage with your blitz app over the games mentioned on that site that in you can specify yourself which port(s) your app will use. |
| ||
Which port does startNetGame() use. I can't find a way to set the port with that command. |
| ||
Sorry, It was the UDP/TCP/IP functions where you can specify the port. For StartNetGame try these DirectPlay Ports (According to the DirectX SDK): 47624, 2300 - 2400 |
| ||
You could maybe try BlitzPlay instead? Don't know if it's still around. It has more or less similair commands as the DirectPlay/NetGame, only it uses UDP. I'm sure you can specify a port for it. |
| ||
OK, I'll try both of those out. Thanks |