---
description: 遠端桌面連線 windows&centos7
---

# 20190227

\*virtualbox

\--------------------------------------------------

/設定

/顯示

/遠端顯示

/啟動伺服器    **遠端port通常都是3389，不過可以手動更改成你要的。**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZh_11drx_kB31xjyiu%2Fimage.png?alt=media\&token=815a153f-4c5f-4cda-bd62-cb252063fe61)

**如果無法執行的情況下**

/檔案

/喜好設定

/擴充功能          **加入extension pack ，記得要先確認virtualbox版本。**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZh_RUrhYJqf0IrhP9d%2Fimage.png?alt=media\&token=9b32e75e-f142-4879-a6b7-c52a021b086e)

**查詢virtualbox版本**

/說明

/關於virtualbox **(5.2.18)**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZh_Gz7hrG87b-drDvU%2Fimage.png?alt=media\&token=7f001f27-de4a-4e06-a2a5-096259f4af57)

\*命令提示字元(cmd)

\---------------------------------------------------

/ipconfig

**查詢IP**

/netstat -an |findstr 6666(port號)                  findstr=find string

**可以看到6666的port號已被占用，而3389的port號未占用。**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZha2GyUhcPEDQFcUih%2Fimage.png?alt=media\&token=1e8d55b2-114c-43c8-912a-b9582ee359a4)

**/查詢路由表**

**route print**

**內定路由表**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZhabFqW-Vic_VmymyW%2Fimage.png?alt=media\&token=1ee027f5-daa2-4908-9a13-3276313c6861)

\*遠端桌面連線(mstsc)

\----------------------------------------------------

/127.0.0.1:port號   &#x20;

**本端機的IP**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZhakiAob9Vzh2jzV4a%2Fimage.png?alt=media\&token=4f8d941b-c8f6-489a-aa44-e28dba361095)

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZhbHUhTbisOethIHtL%2Fimage.png?alt=media\&token=3e96551a-176d-435b-bd16-149ebff45ae3)

/0.0.0.0:21               &#x20;

**尚未取得IP所使用的**

**/可連結任意介面的port號**

**尚未取得IP時可使用的port號**

**主機上任意介面地址/**



**最後可以看到連線完的畫面**

![](https://1005948644-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZgzp55XQBZ7U2SrFtZ%2F-LZhZy3F7JcG8q2dUqkL%2F-LZhbUwVqVliRyYwjnDE%2Fimage.png?alt=media\&token=31579076-4811-4b9f-8a84-f169d8009e84)

