QB64 Phoenix Edition
Inter-Program Data Sharing - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Inter-Program Data Sharing (/showthread.php?tid=983)



Inter-Program Data Sharing - Ikerkaz - 10-18-2022

Hi to all!!!

I am making a space shooter game, and my idea is to make it online for playing with friends... but I have a very big problem, I don't know how to communicate one pc to another Sad

I tried with the Inter-Program Data Sharing Demo (the example listed on the Wiki):
Inter-Program Data Sharing Demo - QB64 Phoenix Edition Wiki

I changed the line "TCP/IP:1234:localhost" and tried everything... my last one was "TCP/IP:8080:xxx.yyy.zzz.nnn" (where xxx.yyy.zzz.nnn is my current IP), but it is useless.

Any ideas? 

Both PCs are NOT in the same LAN, one is mine and the other is from a work colleague.

Thank you very much Smile


RE: Inter-Program Data Sharing - James D Jarvis - 10-18-2022

I'm not an expert but how would the two computers communicate if they aren't on the same network? Heck if I can figure out how to get my kid's computer and mine playing a turn-based game without being hardwired I'd be thrilled.


RE: Inter-Program Data Sharing - Ikerkaz - 10-18-2022

I thought that it would be possible with the IP... Sad

I also tried to create a virtual LAN with Hamachi, but I don't know what port to use in my code.


RE: Inter-Program Data Sharing - Pete - 10-18-2022

A really, really,really,really,really,really,really,really,really,really,really,really,really,really,really, long ethernet cord?

I've done in-house LAN connection apps, but nothing for online sharing. Now the question is, do we still have any members here who have created online games? Maybe a search over at the mirror to the .rip site would be useful: https://qb64forum.alephc.xyz/

Stuff like: https://qb64forum.alephc.xyz/index.php?topic=3281.msg125626#msg125626

https://github.com/FellippeHeitor/amongst

Pete


RE: Inter-Program Data Sharing - SMcNeill - 10-19-2022

Try this for an example: https://qb64phoenix.com/forum/showthread.php?tid=302


RE: Inter-Program Data Sharing - Pete - 10-19-2022

Ah, excellent. We have a local example. One related project I should try and dig up is a QB64 email sender. It was something Rob cooked up. He could email me using it, but couldn't receive emails back. We tracked the outgoing problem on my end to the I.P. server, which was blocking the outgoing messages. Apparently security protocol would have to be added, and that was one can of worms to many to pursue further development. Presently I just slave out to other mail apps using QB64.

Pete


RE: Inter-Program Data Sharing - Ikerkaz - 10-19-2022

Thank you all for your replies.

Yesterday I tried a little client-server program with Hamachi installed in 2 different computers (one connected to my personal Wifi and the other using my mobile phone's data) and it worked!!!

I have to run more tests in order to confirm that this is working fine Wink