Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:07:06+00:00 2026-05-26T02:07:06+00:00

I am trying to run this script on a ubuntu 11.04 box: http://taoofmac.com/space/projects/ReGrowl Its

  • 0

I am trying to run this script on a ubuntu 11.04 box: http://taoofmac.com/space/projects/ReGrowl

Its a small script bound to UDP port 9887 designed to relay Growl packets.

I can send the script Growl packets from the local machine and it works exactly as expected.

However, when trying to send packets from another machine on my network they seem to be dropped or not make it to the script.

I have configured ubuntu to allow the port and the output of netstat looks like this:

root@UbuntuVM:~# netstat -a | grep "udp"
udp        0      0 localhost:9887          *:*                                
udp      768      0 *:mdns                  *:*                                
udp        0      0 *:mdns                  *:*                                
udp        0      0 *:45030                 *:*                                
udp6       0      0 [::]:44730              [::]:*                             
udp6       0      0 [::]:mdns               [::]:*

My script is the first entry on the list.

I have used wireshark and confirmed that the ubuntu machine is receiving the packets.

Do I need todo anything to ubuntu to allow python to bind to UDP ports? Anyone know whats going on here?

Thanks in advance!


UPDATE:

The output of the script should look like this:

127.0.0.1 - - [28/Sep/2011 12:30:27] REGISTER Network Responder 56 ['192.168.0.24', '192.168.0.140', '192.168.0.11', '192.168.0.25', '192.168.0.18', '192.168.0.28', '192.168.0.10', '192.168.0.30']
127.0.0.1 - - [28/Sep/2011 12:30:27] NOTIFY ('Network Status', 'Connection Status', 'Test', 'Network Responder') 80 ['192.168.0.24', '192.168.0.140', '192.168.0.11', '192.168.0.25', '192.168.0.18', '192.168.0.28', '192.168.0.10', '192.168.0.30']

The first IP is the source of the packet, and the array of IPs at the end are the destinations for the packet to be relayed to. As you can this packet originated from the local machine, if I send a packet form another machine its IP should apear first.

Here is the portion of the script that implements the UDP server:

class GrowlRelay(UDPServer):
 """Growl Notification Relay"""
  allow_reuse_address = True

  def __init__(self, inpassword = None, outpassword = None):
   """Initializes the relay and launches the resolver thread"""
   self.inpassword = inpassword
   self.outpassword = outpassword
   self.resolver = RendezvousWatcher()
   self.resolver.start()
   UDPServer.__init__(self,('localhost', GROWL_UDP_PORT), _RequestHandler)

  def server_close(self):
   self.resolver.shutdown()

The full script and dependant classes are available and the link above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:07:07+00:00Added an answer on May 26, 2026 at 2:07 am

    Your code binds the server to localhost, i.e. it only listens to local connections. Replace

    UDPServer.__init__(self,('localhost', GROWL_UDP_PORT), _RequestHandler)
    

    with

    UDPServer.__init__(self,('', GROWL_UDP_PORT), _RequestHandler)
    

    to accept connections from anywhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run this script from the cron job schedule on Ubuntu Linux
I'm trying to use this Ubuntu Upstart script to set up Play to run
I'm trying to run this script: import re, os def build_pool(cwd): global xtn_pool, file_pool
i just installed python i am trying to run this script: import csv reader
I'm trying to run this SQL script but it's not working. It says there
I get this error when trying to run this Oracle SQL script. Any help
I am trying to run this script: SET IDENTITY_INSERT dbo.Message ON INSERT INTO dbo.Message
I have two ruby script cron jobs that I'm trying to run under Ubuntu
require 'rubygems' require 'mechanize' agent = Mechanize.new page = agent.get(http://google.com/) This simple script works
I'm trying to run a bash script in linux (ubuntu but also fedora) but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.