SDL_net: My Program's UDP Broadcast doesn't work on Windows 7?

My program’s UDP broadcast is working fine on XP-XP. When I tried it to broadcast from W7 to XP it doesn’t work. But it’s fine XP -> W7.
I’ve tried allowing my program or port from firewall. It didn’t help. Is it a firewall or coding issue?
I’m quite new in W7 and not very familiar with its firewall settings.
I’m using address.host= 0xffffffff for broadcast.

Thanks in advance
Phuoc

/_/_/_/_/_/_
Status update:
http://badge.facebook.com/badge/100000524562064.1056.1661389415.png
www.huaonline.com

I’ve had issues allowing an individual program to work thru the firewall.
Try turning off the Windows firewall (or your antivirus software’s firewall)
and test it again. If it works then you know that something with your
firewall on is still blocking the application.

Ken> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Phuoc Can Hua
Sent: Saturday, November 27, 2010 6:37 AM
To: sdl at lists.libsdl.org
Subject: [SDL] SDL_net: My Program’s UDP Broadcast doesn’t work on Windows
7?

My program’s UDP broadcast is working fine on XP-XP. When I tried it to
broadcast from W7 to XP it doesn’t work. But it’s fine XP -> W7.
I’ve tried allowing my program or port from firewall. It didn’t help. Is it
a firewall or coding issue?
I’m quite new in W7 and not very familiar with its firewall settings.
I’m using address.host= 0xffffffff for broadcast.

Thanks in advance
Phuoc

/_/_/_/_/_/_
Status update:
http://badge.facebook.com/badge/100000524562064.1056.1661389415.png
www.huaonline.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

What are the accounts you are using in both systems?

Are you by any chance running as root on XP and non-root on 7?

Not sure but it might be a permission issue as well.

For example ports under 1000 are special, and in Unix you need to have the
right
rights to use them. This is just an example of what your issue might be.–
Paulo

On Sat, Nov 27, 2010 at 1:45 PM, Ken Rogoway wrote:

I’ve had issues allowing an individual program to work thru the firewall.
Try turning off the Windows firewall (or your antivirus software’s
firewall)
and test it again. If it works then you know that something with your
firewall on is still blocking the application.

Ken

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On
Behalf Of Phuoc Can Hua
Sent: Saturday, November 27, 2010 6:37 AM
To: sdl at lists.libsdl.org
Subject: [SDL] SDL_net: My Program’s UDP Broadcast doesn’t work on Windows
7?

My program’s UDP broadcast is working fine on XP-XP. When I tried it to
broadcast from W7 to XP it doesn’t work. But it’s fine XP -> W7.
I’ve tried allowing my program or port from firewall. It didn’t help. Is it
a firewall or coding issue?
I’m quite new in W7 and not very familiar with its firewall settings.
I’m using address.host= 0xffffffff for broadcast.

Thanks in advance
Phuoc

/_/_/_/_/_/_
Status update:
http://badge.facebook.com/badge/100000524562064.1056.1661389415.png
www.huaonline.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Received: Sunday, 28 November, 2010, 12:42 AM

What are the accounts you are using in both systems?

Are you by any chance running as root on XP and non-root on 7?

Not sure but it might be a permission issue as well.

For example ports under 1000 are special, and in Unix you need to have the right

rights to use them. This is just an example of what your issue might be.— On Sun, 28/11/10, Paulo Pinto <paulo.jpinto at gmail.com> wrote:
From: paulo.jpinto@gmail.com (Paulo Pinto)
Subject: Re: [SDL] SDL_net: My Program’s UDP Broadcast doesn’t work on Windows 7?
To: “SDL Development List”

I’m running as administrator on both.
I’ll will another port, currently I’m using 2010.

When I tried to set address.host to the particular PC then it worked.
I found this:
http://social.msdn.microsoft.com/Forums/en-US/ncl/thread/6a22a294-e472-4904-91e6-f5b16f8114f8/
Then I played around with the address and I ended up with:
address.host= 0xff01a8c0
It works now. It seems I can only set one 0xff byte for broadcast in Windows 7.

Phuoc— On Sun, 28/11/10, Paulo Pinto <paulo.jpinto at gmail.com> wrote:

From: paulo.jpinto@gmail.com (Paulo Pinto)
Subject: Re: [SDL] SDL_net: My Program’s UDP Broadcast doesn’t work on Windows 7?
To: “SDL Development List”
Received: Sunday, 28 November, 2010, 12:42 AM

What are the accounts you are using in both systems?

Are you by any chance running as root on XP and non-root on 7?

Not sure but it might be a permission issue as well.

For example ports under 1000 are special, and in Unix you need to have the right

rights to use them. This is just an example of what your issue might be.


Paulo