Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inter-Program Data Sharing
#1
Sad 
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
10 PRINT "Hola! Smile"
20 GOTO 10
Reply
#2
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.
Reply
#3
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.
10 PRINT "Hola! Smile"
20 GOTO 10
Reply
#4
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?t...#msg125626

https://github.com/FellippeHeitor/amongst

Pete
Reply
#5
Try this for an example: https://qb64phoenix.com/forum/showthread.php?tid=302
Reply
#6
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
Reply
#7
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
10 PRINT "Hola! Smile"
20 GOTO 10
Reply




Users browsing this thread: 1 Guest(s)