473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

socket.error:(13,'Permission deied')

.........................
data = ....
self.broadcast_ip = 255.255.255.255

UDPSock.sendto(data,(self.broadcast_ip,36))
..........................
These codes run on Windows without errors and warnings.
But i excute that on Fedora Core 2, it shows the error
"socket.error:(13,'Permission deied')"
i try to disable the firewall and become a root but it doesn't work, either.

Does anyone have any suggestions ?
Jul 18 '05 #1
1 3285
Austin wrote:
........................
data = ....
self.broadcast_ip = 255.255.255.255

UDPSock.sendto(data,(self.broadcast_ip,36))
.........................
These codes run on Windows without errors and warnings.
But i excute that on Fedora Core 2, it shows the error
"socket.error:(13,'Permission deied')"
i try to disable the firewall and become a root but it doesn't work,
either.

Does anyone have any suggestions ?


Broadcasting is a privileged operation on Unixes, you need to set
SO_BROADCAST flag. See manpage socket(7).

Hope this helps,
Alex
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: zbcong | last post by:
hello i write a smtp client winform (using socket 25 connect to smtp server),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want connect to...
2
by: JingleBEV | last post by:
Hi, Iam coding data access application with database object and recordset. Here' s my code '------------------------------------------------------------------ Private Function CreateRecordSet()...
2
by: Galina | last post by:
Hello All of a sudden I started getting error 13, type mismatch in a command, which was running happily for years. Here is a code: Option Compare Database Option Explicit Dim CmdClose1_Clicked...
0
by: zbcong | last post by:
hello i write a smtp client winform (using socket 25 connect to smtp server),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want connect to...
0
by: zbcong | last post by:
hello i write a smtp client winform (using socket 25 connect to smtp server),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want connect to...
1
by: zbcong | last post by:
hello i write a smtp client winform (using socket 25 connect to smtp server),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want connect to...
0
by: Jordan | last post by:
When I run this code in IExploer with XP sp2 and click on LinkButton javascript bellow fire error: Error:Permission error on row !!!!!!!!!!!!. And same code work fine after comment row **********....
0
by: ABN | last post by:
Hi, A web page Main.aspx of my web application is getting called from a different application. Following is the code of Main.aspx: <HTML> <HEAD> <title>Main</title> <meta name="GENERATOR"...
0
by: Tim Golden | last post by:
aditya shukla wrote: Why on earth are you *specifying* c:\python25 as the directory for this file? It's automatically created in your user-specific temp directory which has specific permissions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.