Author Topic: Peer-to-peer connection  (Read 2251 times)

0 Members and 1 Guest are viewing this topic.

Offline loudar

  • Newbie
  • Posts: 73
  • improve it bit by bit.
    • View Profile
Peer-to-peer connection
« on: July 10, 2019, 06:36:13 am »
I want to connect to a certain computer via _OPENCLIENT but it doesn't work with the IPv4 address (the one I get via cmd > ifconfig) of the server.
I used a random port, in this case 8080, equal on both host and client side.

Any ideas what could be wrong?
« Last Edit: July 10, 2019, 06:40:01 am by loudar »
Check out what I do besides coding: http://loudar.myportfolio.com/

FellippeHeitor

  • Guest
Re: Peer-to-peer connection
« Reply #1 on: July 10, 2019, 07:26:09 am »
Firewall?

Offline loudar

  • Newbie
  • Posts: 73
  • improve it bit by bit.
    • View Profile
Re: Peer-to-peer connection
« Reply #2 on: July 10, 2019, 10:29:22 am »
Even if it was the firewall, I want it to work on any new computer the program is run on, is there a way to ensure it goes through the firewall within the code?
Check out what I do besides coding: http://loudar.myportfolio.com/

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Peer-to-peer connection
« Reply #3 on: July 10, 2019, 06:45:29 pm »
IMHO
you must register by code your program like an exception of the firewall
see Mum Microsoft what says about this...https://support.microsoft.com/it-it/help/947709/how-to-use-the-netsh-advfirewall-firewall-context-instead-of-the-netsh

Programming isn't difficult, only it's  consuming time and coffee

Offline loudar

  • Newbie
  • Posts: 73
  • improve it bit by bit.
    • View Profile
Re: Peer-to-peer connection
« Reply #4 on: July 16, 2019, 06:39:48 pm »
How would I run such commands automatically via QB64? I could run the cmd.exe for sure, but I don't know how I would use the command remotely.

Any other way would be highly inconvenient, as I want to distribute the program rather widely and want to simplify the installation process as much as reducing it to a single .exe file. This, however, should download the contents for the actual program from a server; thus having to have the ability to already establish a peer-to-peer connection before downloading. If I can do that within the program 100% automated that would be perfect.
Check out what I do besides coding: http://loudar.myportfolio.com/