Advertisement

DPNERR_INVALIDDEVICEADDRESS on Host call, which device for LAN vs DSL

Started by March 02, 2004 09:28 AM
2 comments, last by vlh256 20 years, 11 months ago
Hello! In first, excuse my poor english. So, i''m currently trying to host a session to make network tests at home. I''ve something like: ... CoCreateInstance(CLSID_DirectPlay8Address, NULL, CLSCTX_ALL, IID_IDirectPlay8Address, (LPVOID*)&ms_pDP8AddrLocal); ... hr = ms_pDP8AddrLocal->SetSP(&CLSID_DP8SP_TCPIP); ... hr = ms_pDP8AddrLocal->AddComponent(DPNA_KEY_PORT, &dwport, sizeof(dwport), DPNA_DATATYPE_DWORD); ... Then I fill a DPN_APPLICATION_DESC struct, and i try: hr = ms_pDPServer->Host(&dpnAppDesc, &ms_pDP8AddrLocal, 1, NULL, NULL, NULL, 0); At this point I obtain a DPNERR_INVALIDDEVICEADDRESS error. In fact, all works fine if i use only my destkop computer, with its dsl connection. But when I try the same thing with my portable computer linked to my desktop one, i''ve the error. I think it''s because i don''t mention clearly the device i want to use in my adress var, could it be the reason? (I want to say : my dsl connection vs my local network connection) I''ve done a GetURLA, and I obtain something like: x-directplay:/provider=...;port=20101 No device at all, of course. But I don''t know how to obtain it! If i am on the right way, how can i obtain directplay devices? I haven''t found an enumdevice function. I made other tests: - I''ve disabled my dsl connection (disconnect) => same problem, and i don''t want to uninstall it! - I made test without any firewalls. - I found a note on microsoft site saying to enable windows xp firewall => no ameliorations. (tried because i used ICS) - I tried the directx samples (simpleserver and simpleclient) => exactly same results. Works fine if my second PC is off, but same error in the other case. - I tried to host from my portable too, same error, i think it''s because my portable have two connections installed by default (lan & modem) so... same problem. - DX Sample ChatPeer seems works if i disconnect my dsl connection, not in the other case. But I''d prefer a client/server architecture. Any help appreciated! Thx a lot in advance for reading, and for eventual help. ''Vince.
Wow, so nobody?
Advertisement
> port=20101

You should check with ''netstat -a -n'' in a DOS console window that this port is indeed free to use.

-cb
Yes, but I''ve just forgotten to say that i''ve already tested it too. Seems not used. And I tried other ports too...
Anyway, thanks cb...

This topic is closed to new replies.

Advertisement