Advertisement

DirectPlay8 Peer2Peer Connection woes

Started by October 28, 2003 08:49 AM
1 comment, last by citizen3019 21 years, 3 months ago
Good Morning! Yes, I did post this in the DirectX forum as well... I have been running through some of the DXSDK9 DPlay8 tutorials. On Tutorial 4 I have tried to connect without enumerating hosts but instead going directly to a host I know is there. The first time I ran it I got the invalid host error. The last dozen times I''ve run it I get the no connection error. I read a good tutorial on server-client in DP8 on from this site but it failed to solve my problem. Does anyone have any clue as to something that might have been accidentally ommitted or perhaps a common DP8 newbie problem I might be having? Thanks in advance for any help/insight! **By the way** I have also posted on microsoft.public.directx.networking But I think that gamedev will have the answer first!
> I have tried to connect without enumerating hosts

You need a fully formed IDirectPlay8Address for this (HOSTNAME + PORT). You are most likely missing the port number on which the host is running. If you have setup the host on a fixed port, you''re golden. If not, DPNSVR needs to be queried for it and that is done only through enumeration.

-cb
Advertisement
Thanks cbenoi1.

I am setting both host name and port (although DP8 does not require the host name except under WinCE, but they do say to enum if in doubt. )

I guess I''ll just do the enum.

This topic is closed to new replies.

Advertisement