test network on one pc?

Blitz3D Forums/Blitz3D Beginners Area/test network on one pc?

(tu) sinu(Posted 2007) [#1]
Im trying to add multiplayer into my game, however, i can only test on one pc for now, how is it possible to test networking or lan on one pc. Is it even possible?
Can i have 2 running apps and send data between them on my single pc?


degac(Posted 2007) [#2]
you need a server application installed on your computer. Try with apache server - it is a bit a mess to setup the thing, but it works


Fuller(Posted 2007) [#3]
apache doesn't support blitz does it?


Synchronist(Posted 2007) [#4]
Setup your server app to use the loopback interface, usually at address 127.0.0.1 on your PC. You can then setup your client on the same PC and interact with the server.

Assuming your using XP, here's more info: http://support.microsoft.com/kb/839013


IPete2(Posted 2007) [#5]
Using BlitzPlay, I have (in times gone by) run two or more clients versions along with a server version of a B3d programme, nothing else is needed, except the PC has to think it is conncted to a network.

As I remember I was using XPHome.


IPete2.


jfk EO-11110(Posted 2007) [#6]
Synchronist is right, use 127.0.0.1, or "localhost". BUt you have to make sure the server port is not the same as a client port. Based on this rule you may run as many net-apps on one machine as you want and as your speed allows.


Dreamora(Posted 2007) [#7]
Be aware that testing on one machine leaves one serious part untested: how good is your interpolation code, because over internet there will be latency from 20-200 (+++) milliseconds and the game shouldn't end as a 5 pics per second show and interpolated the future basing on previous data.


jfk EO-11110(Posted 2007) [#8]
That's why I'd prefere lan parties over mp fps across the web.


Lane(Posted 2007) [#9]
Try Microsoft virtual PC (It's Free) and do the network between the two virtual machines. or Virtual to real.
I have not tried Blitz in a virtual My self. I will and get back to you.

http://download.microsoft.com/download/e/6/3/e6328cf5-6f26-459b-8ec9-2985288d7166/nmsetup(x86).msi
MS Network Monitor

http://download.microsoft.com/download/8/5/6/856bfc39-fa48-4315-a2b3-e6697a54ca88/32%20BIT/setup.exe
VirtPC 32bit for XP

So Far... No 3d graphic modes are supported. For 2D it should be fine for testing networking.


Gabriel(Posted 2007) [#10]
Be aware that testing on one machine leaves one serious part untested: how good is your interpolation code, because over internet there will be latency from 20-200 (+++) milliseconds and the game shouldn't end as a 5 pics per second show and interpolated the future basing on previous data.

No it doesn't. BlitzPlay has the ability to fake latency so you can test precisely this. Any good networking engine should have this feature.