Results 1 to 7 of 7

Thread: UDP Broadcast

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    UDP Broadcast

    I'm stuck, it's not working...

    If I set both forms UDP socket to broadcast to "255.255.255.255" nothing happens. But if I set one of the UDP sockets to broadcast to "127.0.0.1" (the other still set to 255.255.255.255) then they both start receiving from each other.

    It's driving me nuts!
    Attached Files Attached Files

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    BTW, I'm using Win XP... will that be a problem?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    *bump

    Anyone?

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    *bump

  5. #5
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    What you trying to do ??

  6. #6
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    255.255.255.255 is a broadcast IP address of a class E address (if I remember correctly, that is. In any case, anything past C [224.x.x.x] is reserved). Try using 192.168.x.x (a private address) instead with a broadcast address of 192.168.x.255 (unless you're subnetting). Also, 127.x.x.x is reserved for maintenance/debugging/etc.
    Last edited by jemidiah; Oct 30th, 2003 at 07:09 PM.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Tiovital: I was trying to come up with a sample code of UDP Broadcasting for my friend. Since I only have one PC now, I'm trying to simulate within one PC (you can do a local connect on TCP 127.0.0.1 so I thought it was possible with UDP broadcasts).


    jemidiah: I already tried 203.255.255.255 but that didn't work. I think I figured out the problem (I think). I forgot that my friend borrowed my LAN card so the other address available to me aside from 127.0.0.1 is the address supplied by the ISP (202.70.x.x) when I connect to the internet. I'll have to check that out...

    Thanks for your input guys. If it still doesn't pan out as expected I'll post again.

    BTW, did you try it out? Did it work on your PCs?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width