Use Socket Library To Get Mac Address

Address

Hello all,
I'm trying to get the Trac bug tracking system installed on my system(running snow leopard). After quite a bit of tinkering I've managed to install Trac, but as of now, its a standalone entity. I am trying to get this linked to the apache webserver, but having no success. Has anybody done this before? I haven't used unix to this level before and so am struggling with that as well... any info on this is much appreciated.
One of the instructions to test run Trac as a standalone component was using this command tracd --port 8000 /path/to/myfolder (according to installation instructions at http://trac.edgewall.org/wiki/TracInstall). I stopped it using Ctrl-Z and now when I try to run it again, get the following message and error:
Traceback (most recent call last):
File '/usr/local/bin/tracd', line 8, in <module>
load entrypoint('Trac0.12', 'console_scripts', 'tracd')()
File 'build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py', line 290, in main
File 'build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py', line 257, in serve
File 'build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py', line 109, in _init_
File 'build/bdist.macosx-10.6-universal/egg/trac/web/wsgi.py', line 231, in _init_
File '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py', line 400, in _init_
self.server_bind()
File '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTT PServer.py', line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py', line 411, in server_bind
self.socket.bind(self.server_address)
File '<string>', line 1, in bind
socket.error: [Errno 48] Address already in use
Can somebody please guide me to fix this?
Message was edited by: capemacuser
I realize that closing the terminal window 'frees' the socket. But, is there something else that I can do while stopping the running application to ensure that the socket also gets 'freed'?

imac 10.1, Mac OS X (10.6.4), Trac bug tracker

Use Socket Library To Get Mac Address 2017

Posted on

Mac Socket Sets

Mac

Use Socket Library To Get Mac Address Of Computer

Using the connected socket we are able to use the Socket.RemoteEndPoint to obtain the IP address of the client. Is there any way to obtain the MAC address for the client? The client MAY not even have a MAC address, they could be using a protocol like SLIP or PPP. Nov 07, 2008           If u want to use MAC address communication between more than two systems, then U need to use Layer2 Protocols. If u use existed socketing options like SOCKSTREAM, SOCKDGRAM, those works with IP protocols. Even if u use SOCKRAW, u need to  know once this Socket is called what is the handle for SOCKRAW option. You have to add the input lib Rpcrt4.lib via project setting and the header Rpc.h to your project please check this link Getting the Physical (MAC) address of a Network Interface Card and finding out if it is the primary adapter on a multi-homed system.