Question

Using Synergy with Mac and WinPC

Asked by: brettr

I'd like to use Synergy for controlling a Vista PC from a Macbook.  I have Synergy installed on both and Synergy KM installed on the Macbook.  Vista is the server and the Macbook is the client (is that correct?).  The Vista server is started but when the Macbook tries to connect, I get this error:

2009-07-19 11:08:25.656 Synergyd[37742:20b] NOTE: started client
2009-07-19 11:08:25.695 Synergyd[37742:20b] ERROR: server refused client with name "MacBook"
2009-07-19 11:08:25.800 Synergyd[37742:20b] NOTE: stopped client

MacBook is the name in the server's configuration.  I never see anything in the server log about the connection attempt/rejection.  Any suggestions?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-19 at 11:12:43ID24582564
Topics

Remote Access Software

,

Windows 64-bit

,

Mac OS X

Participating Experts
2
Points
500
Comments
30

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. How to migrate to a 2008 KMS server from a Vista KMS …
    Hi all; I am working on migrating our KMS server to a 2008 machine from our current Vista install. Is it as easy as running the cscript C:\windows\system32\slmgr.vbs /ipk <KmsKey> command and making sure the DNS publishing is done?
  2. MacBook Drivers For Vista
    Hello, I have installed Microsoft Windows Vista on my MacBook. I don't have Mac OSX on the MacBook and am not running BootCamp. I am having difficulties with a few drivers on the laptop like the audio and wireless drivers. Would anybody have a link from which I could down...
  3. KMS and Vista
    I am looking into using KMS to activate Vista. I installed Windows Server 2008 64bit to get Exchange 2007 setup on my network. This system is installed using volume media and a look at the key using slmgr -dli shows that it is a KMS class B key. All looks dandy. I now want to...
  4. repairing vista on macbook pro
    Hi, i have a macbook pro with windows vista installed...it crashed and i am trying to repair the installation using the original vista cd... i get the screen that says.... 1. insert your windows installation disc and restart your computer. 2. choose youer language sett...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ComputerTechiePosted on 2009-07-19 at 14:36:32ID: 24891156

make sure vista firewall is allowing Synergy through.

CT

 

by: brettrPosted on 2009-07-19 at 16:14:15ID: 24891545

Vista firewall is turned off.  The wireless network comes from an Apple Time Capsule, which doesn't have a firewall that I know of.  The TC gets its Internet access from a cable modem.

 

by: brettrPosted on 2009-07-19 at 20:33:19ID: 24892286

The Vista box can't ping "MacBook".  It can ping the IP of that machine but not the host name.  Could that be the problem?  What is need to get the Vista box to see the name MacBook on the network?

 

by: ComputerTechiePosted on 2009-07-19 at 20:54:49ID: 24892343

try checking you dns settings on the mac  . http://www.plus.net/support/domains_and_dns/dns/changing_dns_mac.shtml
Your dns should be your router
you could also try setting each fixed ip address.

CT

 

by: brettrPosted on 2009-07-19 at 21:39:23ID: 24892447

I have two IPs under DNS servers and one domain name for comcast under search domains.  I did add the route IP under DNS servers.  I don't think that does anything for resolving the name MacBook.  The mac can't even ping "MacBook".  It gets:

cannot resolve MacBook: Unknown host

The Vista box gets its DNS servers automatically.

 

by: brettrPosted on 2009-07-19 at 21:59:48ID: 24892497

Found out the MacBook needs to ping MacBook.local and same for Vista.  However, Synergy still gives the error.  Synergy is using "MacBook" for the screen name but that isn't seen across the network.  Synergy gets the hostname automatically.  So I changed the Mac hostname to MacBook.local.  Now Synergy shows "MacBook-local".  I then changed the Vista box Synergy config to say "MacBook-local".  But still the error.

 

by: eoinosullivanPosted on 2009-07-20 at 07:14:42ID: 24895180

1. To control the Vista PC from the Mac .. you need to run Synergy Server on the Mac ... and the client on the PC.  You have the setup the wrong way around.

2. There are no nice GUI's that work well for the Synergy Server on the Mac .. you'll need to dabble a little in Terminal

Here's my setup
a. Put synergys in a folder in your applications folder along with the synergy.conf file (e.g. /Applications/Synergy)
b. Edit the synergy.conf file (see snippet below for a suggested format and rename the 2 computers as appropriate).  You can always begin by using IP addresses to be 100% sure.
c. Open Terminal and run synergys using something like ..
/Applications/Synergy/synergys --config /Applications/Synergy/synergy.conf
d. Start the client on the Windows Vista PC and see will it connect.

If all is OK ... then I recommend creating an Applescript or Automator Workflow to start synergys and you can put this in your startup folder or run on demand.  I use a workflow script with a single element "Run Shell Script" with the following code ..

screen -d -m /Applications/Synergy/synergys --config /Applications/Synergy/synergy.conf -f

section: screens
	MAC.local:
	VISTA:
	alt = super
  	super = alt
end
 
section: links
	MAC.local:
		right = VISTA
	VISTA:
		left = MAC.local
end

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:

Select allOpen in new window

 

by: brettrPosted on 2009-07-20 at 08:07:08ID: 24895809

"There are no nice GUI's that work well for the Synergy Server on the Mac..."

Yes - there is.  It's called Synergy KM, http://sourceforge.net/projects/synergykm/, as mentioned in the OP.

I switched things around and now get this error:

cannot listen for clients: cannot bind address: Address already in use

Any suggestions?  Thanks.

 

by: eoinosullivanPosted on 2009-07-20 at 08:19:05ID: 24895930

I find the Synergy KM System Preference works OK for the CLIENT ... but not very well for the SERVER.

As you need to run the SERVER on your mac .. I'd recommend working with the original synergys files which you can get here.
http://synergy2.sourceforge.net

If you get it working ... then you might want to re-try the SynergyKM System Preference pane.




 

by: brettrPosted on 2009-07-20 at 08:43:16ID: 24896167

Probably Synergy on the Mac was still using the port as a client.  I restarted the Mac and now don't get the error:

cannot listen for clients: cannot bind address: Address already in use

However, the Vista client is giving this error:

failed to connect to server.  Timed out.

 

by: eoinosullivanPosted on 2009-07-20 at 08:49:37ID: 24896222

Can you try the setup with IP addresses .. rather than names?

And confirm you're using synergys and not SynergyKM

 

by: brettrPosted on 2009-07-20 at 19:59:52ID: 24901060

I tried IPs and no luck.  Using the command line as you suggested above, here is my output:

MacBook:synergy brettr$ synergys --config synergy.conf
-bash: synergys: command not found

...and...

MacBook:synergy brettr$ synergys config /synergy.conf
-bash: synergys: command not found

...and...

MacBook:synergy brettr$ synergys
-bash: synergys: command not found


synergys is in the folder.  Any suggestions?

 

by: eoinosullivanPosted on 2009-07-21 at 00:21:54ID: 24901866

READ my posting above ... carefully!!
You must use the FULL folder path to the synergys and .conf files .. you CANNOT just enter the following line in Terminal .. EVEN if you are viewing the synergy folder.  This will not work.
synergys --config synergy.conf

YOU MUST enter the full paths to both files e.g.
/Applications/Synergy/synergys --config /Applications/Synergy/synergy.conf

where /Applications/Synergy/ is the location of the synergys and .conf files.

It is always worthwhile having the Activity Monitor application open so you can see when the synergys process starts.

 

by: brettrPosted on 2009-07-21 at 07:22:13ID: 24904824

Thanks.  I did have IP addresses in the conf file but was getting an error.  I then pasted exactly what you have for the conf file and still get the same error:

MacBook:synergy brettr$ /Applications/Synergy/synergys --config /Applications/Synergy/synergy.conf
ERROR: cannot read configuration "/Applications/Synergy/synergy.conf": read error: line 2: invalid character 0xffffffc2
synergys: no configuration available

Any ideas what causes it?

 

by: eoinosullivanPosted on 2009-07-21 at 07:32:02ID: 24904938

Brett .. what is the location of your synergys file ... give me the EXACT path to the folder where it resides.

It would appear that the folder you are using is synergy with a lowercase spelling ...
synergy

Unix is case-sensitive so the path must be correct

 

by: brettrPosted on 2009-07-21 at 07:45:34ID: 24905113

The path is

  Applications/Synergy

off of the root folder.

The "S" is upper case.  It is lower case in my path because I typed in "cd synergy".  I backed down a folder and typed in "cd Synergy" but still get the line 2 error.

 

by: eoinosullivanPosted on 2009-07-21 at 08:06:25ID: 24905385

try this ..

Take your terminal window .. at the command prompt ..
drag the synergys icon into the Terminakl window .. and it will put in the full path ...
 then type a space and '--config ' and another space and then drag and drop the conf file

You will have a Terminal command something like the one above but it will prevent any errors or typos
Then press Return

If synergys will not start up .. send us the full error message.

 

by: eoinosullivanPosted on 2009-07-21 at 08:12:40ID: 24905447

Can you post the synergy.conf file ... just copy and paste the contents into the code snippet section below.

What program did you use to edit the CONF file?  You must not use any text editor such as TextEdit that may intorduce non-compatible characters.

Try using BBEdit, TextWrangler or even vi in Terminal

 

by: brettrPosted on 2009-07-21 at 08:16:26ID: 24905487

I tried that but same error.  Where do I find an error report?

Seems as though maybe I'm missing some files in the Synergy folder.  I copied only two files into the Synergy folder - synergys and synergy.conf.  You mention dragging the Synergy icon.  I just have a gray square for synergys.  It's type is Unix Executable File.

 

by: brettrPosted on 2009-07-21 at 08:29:16ID: 24905642

I am using TextWrangler to edit the conf file.  Here is its contents:

section: screens
        MAC.local:
        VISTA:
        alt = super
        super = alt
end
 
section: links
        MAC.local:
                right = VISTA
        VISTA:
                left = MAC.local
end

 

by: eoinosullivanPosted on 2009-07-21 at 08:42:56ID: 24905868

I thought you'd changed to IP addresses?

Is VISTA the name of the Window's PC? .. and MAC the name of your MacBook?

synergys is a Unix Executable File.  YES, you drag this into Terminal!!

You only need the 2 files . synergys and synergy.conf

 

by: eoinosullivanPosted on 2009-07-21 at 08:47:32ID: 24905949

If you are still getting the error you listed above ...
line 2: invalid character 0xffffffc2

Then I'de recommend DELETING the synergy.conf and re-downloading it from the website
http://synergy2.sourceforge.net

and then CAREFULLY re-edit using TextWrangler.  It sounds like you may have incorrect characters in the current .CONF file.

 

by: brettrPosted on 2009-07-21 at 20:52:06ID: 24911443

Ok, that worked.  I start the server through Synergy KM, unless there is another way I should start it.  I then start the Vista client.  After a few seconds, it gives the error:

  ERROR: failed to connect to server: Timed out

192.168.0.4 = MacBook
192.168.0.3 == VistaDesktop

VistaDesktop can ping 192.168.0.4 ok.   Here is my conf file:

# sample synergy configuration file
#
# comments begin with the # character and continue to the end of
# line.  comments may appear anywhere the syntax permits.

section: screens
      # three hosts named:  moe, larry, and curly
      192.168.0.4:
      192.168.0.3:
end

section: links
      # larry is to the right of moe and curly is above moe
      192.168.0.4:
            left = 192.168.0.3
            #up    = curly

      # moe is to the left of larry and curly is above larry.
      # note that curly is above both moe and larry and moe
      # and larry have a symmetric connection (they're in
      # opposite directions of each other).
      192.168.0.3:
            left  = 192.168.0.4
            #up    = curly
end

section: aliases
      # curly is also known as shemp
      #curly:
      #      shemp
end

 

by: eoinosullivanPosted on 2009-07-22 at 00:31:30ID: 24912212

If you ran the command in the terminal .. then you should have NO NEED for synergyKM ..

SynergyKM includes a second copy of Synergy on your Mac .. and its own .conf file.

All the work getting Synergy to run and editing the conf file will be pointless if you start SynergyKM also.

Open the Application Monitor program and look through the processes .. you should see ONE instance of synergys running .. if you see more than 1 .. kill all the processes and then repeat the instructions on getting synergys working using Terminal.

On the VISTA computer running synergy .. enter the IP address of the MAC in the client field.  If you also set the Logging Level (at the bottom of the screen) to Debug you may get a better idea of what is going on.

 

by: brettrPosted on 2009-07-22 at 07:08:40ID: 24915036

Using the command line you gave doesn't start Synergy.  By that, I mean it isn't listed in the running processes on the MacBook.  I'm now using this command line and see Synergy isn't starting:

MacBook:Synergy brettr$ /Applications/Synergy/synergys -f --config  /Applications/Synergy/synergy.conf
INFO: Synergy server 1.3.1 on Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
FATAL: unknown screen name `MacBook'

The conf file is the same one I posted above.  Where is it getting the name MacBook?  I'm using all IPs. I also dragged the two files into Terminal to make sure they are the ones I think they are.

 

by: eoinosullivanPosted on 2009-07-22 at 08:28:50ID: 24916166

OK brett

First ... can I say I have Synergy working as I described above perfectly between my iMac and 2 Windows PCs running XP and Vista respectively.

Unfortunately there is little "finesse" in the synergys server on OSX .. and the errors you get in the Console.app are often not very informative.

1. leave the -f switch off for the moment in the string
/Applications/Synergy/synergys --config  /Applications/Synergy/synergy.conf

2. If you still get the error ... FATAL: unknown screen name `MacBook'
then there is clearly another .conf file in the mix or another copy of Synergy running.

3. Uninstall SynergyKM to be 100% sure it is not the cause.  To uninstall just Control + click on the icon in the System Preference panel and remove it .. Reboot the mac afterwards.

4. In the System Preferences : Sharing Preference pane .. can you check the EXACT spelling of the shared name for your MacBook??   This should be written in small text underneath the text box at the top .. and always ends in .local

 

by: brettrPosted on 2009-07-22 at 08:54:33ID: 24916526

1.) I left the f switch off and get no error.  However, I see no synergy in the running processes.

2.) No error.

3.) Uninstalled as you instructed.

4.) "Computer Name:" is MacBook.  Then it says, "Computers on your local network can access your computer at: MacBook.local".

Thanks for sticking around so long.  Sorry it is so much trouble though.

 

by: eoinosullivanPosted on 2009-07-22 at 09:02:16ID: 24916627

Brett .. a remote connection session may be a faster way to solve this.  

If you're interested ... email me .. eex at eoinosullivan dot com and I will initiate a remote support session using LogMeIn. or Skype me on eoinxxxosullivan (replace xxx with an underscore)

In the interim .. open Synergy on the VISTA computer and enter ... MacBook.local as the Other Computer Hostname and set logging to debug and Test it.


 

by: brettrPosted on 2009-07-22 at 21:14:30ID: 24921756

Thanks for the remote assistance offer but I've got it working now.  I tried changing the MacBook's IP to MacBook.local in the config but got the same error on the command line.  Then I changed it to just MacBook and the server started.  I have the client still as an IP but it connects without issue.  I am using the -f switch in the command line.  Without the -f switch, the client connects and gets disconnected.  Then the server stops.  Not sure why.   The -f switch works fine though.

How do I properly stop the server?

I may try the client host name but don't want to tempt my fate at this point.

Thanks again for all of your time and help.

 

by: eoinosullivanPosted on 2009-07-23 at 00:45:56ID: 24922621

To properly stop synergy you'll need to use Activity Monitor or in terminal type "synergys stop".
You could create an AppleScript to start and stop it.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...