SFML community forums

Help => Network => Topic started by: paupav on January 02, 2016, 11:36:43 pm

Title: Simple UDP connection that transfers message using packets
Post by: paupav on January 02, 2016, 11:36:43 pm
So, I don't know why this isn't working. I've read some documentation and I've made this code. Both server and client are ran on the same machine.
SERVER
(click to show/hide)

CLIENT:
(click to show/hide)
Title: Re: Simple UDP connection that transfers message using packets
Post by: Laurent on January 03, 2016, 09:56:38 am
Using your public IP, the packet will go through your router, the public internet and then back to your router and finally to your PC. So it will most likely be blocked.

If you run it locally, either use your private address or localhost.
Title: Re: Simple UDP connection that transfers message using packets
Post by: paupav on January 03, 2016, 04:04:22 pm
Thanks