Fix error: server hostname was not specified in PAC Manager

Share this post to your friends !
  • 1
    Share

DanieBlog - This article will guide you handle the error error: server hostname was not specified with /v:<server>[:port] in PAC Manager. If you are a Linux system administrator, you’re probably no stranger to the PAC Manager software. This is a software that helps you manage the server connection quite well.

Error: server hostname was not specified with /v:<server>[:port]

While working on Linux, there are times when you will have to work with some windows servers. It’s easy to remote from a Windows client to a Windows server. But when you use a PAC, you may encounter the following error when setting up a connection with the RDP is xfreerdp.

fix-error-server-hostname-was-not-specified-in-pac-01 Fix error: server hostname was not specified in PAC Manager
Error: server hostname was not specified in PAC Manager.
WARNING: Using deprecated command-line interface!
-a 24 -> /bpp:24
-T  - DANIE -> /title: - DANIE
-g 1364x715 -> /size:1364x715 or /w:1364 /h:715
-u danie -> /u:danie
-x 80 -> /network broadband
-z -> /compression
--ignore-certificate -> /cert-ignore
(null) -> /v:(null)
error: server hostname was not specified with /v:<server>[:port]

I was very upset with this error because I did not know how to solve it. Another solution is to use rdesktop instead of xfreerdp when setting up an RDP connection on the PAC Manager.

But the downside is that rdesktop only display 16bit color screen so the screen will be very bad. I do not like it.

Resolve error in PAC Manager

After a lot of time searching and reading what I’m facing. I found a way to solve that problem.

You will need to edit the PAC Manager code, but it’s pretty simple. You run the following command to open 938 of the file /opt/pac/lib/pac_conn.

sudo nano +938 /opt/pac/lib/pac_conn

You will see two lines as shown in the image below, the line is highlighted in the picture.

fix-error-server-hostname-was-not-specified-in-pac-02 Fix error: server hostname was not specified in PAC Manager
Edit file /opt/pac/lib/pac_conn to solve error.

You need to edit the content of the two lines from:

$connection_cmd = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " $IP:$PORT -T \"$TITLE\"";
$connection_txt = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " $IP:$PORT -T \"$TITLE\"";

To:

$connection_cmd = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " -T \"$TITLE\" $IP:$PORT";
$connection_txt = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " -T \"$TITLE\" $IP:$PORT";

You then save the changes to the file.

Then you can try the RDP connection with xfreerdp to see if it succeeds, with the above method I have done successfully.

Conclusion

If you are also facing the error can not make RDP connection on the PAC Manager as in the article that I stated. Hope through the steps you can solve that error and you can work comfortably.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
  • 1
    Share
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

single post bottom banner
«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.