C# udpclient/udp socket -- working locally but not on global addresses -


i have annoying problem. have mirc/skype application, meaning chatroom text , voice. text & chatroom stuff goes through tcp , works flawlessly, while udp relays recorded data other connected clients.

between 2 clients on home network, audio transfer works fine. against global client, server niether receive packets him, or receive packets server.

here's example:

server using udp socket while client using udpclient, result same anyway , works locally too..

server global ip: 222.222.222.222 server local ip: 192.168.2.3 server port: 9999

client global ip: 111.111.111.111 client local ip: 192.168.0.100 client port: 8888

the server *binds socket 192.168.2.3 : 9999 *receives 111.111.111.111 : 8888 *sends 111.111.111.111.111 : 8888

the client *binds socket 192.168.0.100 *receives 222.222.222.222 : 9999 *sends 222.222.222.222 : 9999

...you mean. have no idea why data dosn't through. i've tried sending/receiving on port 53 (for both client , server) , shouldn't necessary right? mean traffic should go through anyway (just games call of duty) , no there no windows firewall active, router in case.

the client/server uses connect() each other, not receivefrom/sendto. tried using no difference.

i no exceptions or either impossible debug :(

what possibly reason? consider fact works locally not globally; agree sounds firewall issue, i'e described above dont see how thats applicable in scenario, , tried on port 53 , other open ports..

cheers :)

edit: quite alot of code, if necessary can copy in

you can't broadcast udp entire internet (i assume mean 'global') - work within subnet of machine issuing broadcast. why works locally not remote machines.

you might want consider using ip multicast instead:

http://en.wikipedia.org/wiki/ip_multicast

that said may have problems routers (that have no control over) not allow multicast packets forwarded.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -