2016-12-17 56 views
-1

我不知道這是否是一個有效的問題,但我試圖獲取我嘗試通過TightVNC遠程連接的計算機的IP地址。來自MAC地址的IP不在我的網絡中的計算機的地址(遠程)

我檢查了一些關於SO的答案,但他們主要是關於在當前網絡上找到ip-mac而不是在遠程計算機上的ARP表。

不幸的是,我只注意到遠程計算機在離開時的本地IP和MAC地址,但在去假期後,我意識到我不知道實際的全球IP。現在我想知道是否有辦法通過運行具有特定IP的PC來知道IP。

也許與這個問題有關,我想知道是否有我能用我當前使用的Windows計算機檢查最近的IP,所以我會知道我在之前使用的網絡的IP範圍幾天,並用它來找到我的遠程PC。

回答

2

您應該使用DDNS服務器,例如http://www.noip.com/,在遠程PC中安裝軟件,並且將更新no-ip服務器中的IP,現在您可以使用名稱連接到該遠程PC例如您的ThigthVNC客戶端中的remote_pc_from_A.Yazdiha.no-ip.org。

+0

的問題是,我現在有遠程電腦不能訪問,它只是與互聯網,所以我不能在其上安裝任何軟件。 –

+2

很多路由器都支持這些DDNS解決方案。那麼就沒有必要在PC上安裝軟件了。 – Jonas

0

此批代碼將獲取以下詳細信息,

  1. PC名稱
  2. IP地址
  3. MAC地址
  4. 計算機說明(如果可用)

請保存以下代碼anyname.bat格式並運行它。它會將結果輸出到單獨的文本文件中。

:: This Windows Batch(CMD) File fetches All the Details of the Nearby PC's of Same VLAN (Upto 254 host's). 
    :: Windows OS (CMD) 
    :: Author : [M.S.Arun][1] 

    :: #****************************************************************** Start of Script ********************************************************************# 

    @echo off 
    title Remote PC Details Fetching Script(PC Name/IP's/Computer Description) 
    echo. > %cd%\PC_Details_Temp.txt 
    echo Remote PC Details Fetching Script (PC Name/IP's/Computer Description) details of the Nearby PC's of Same VLAN.(Upto 254 Hosts) 
    echo. 
    set /p input_ip="Please Enter the IP Range(Eg:192.168.1) : " && echo 
    set /p input_ip_start="Please Enter Start IP Range(Eg:1) : " && echo 
    set /p input_ip_end="Please Enter End IP Range(Eg:254) : " && echo 
    echo. >> %cd%\PC_Details_Temp.txt 
    @echo on 
    for /l %%i in (%input_ip_start%, 1, %input_ip_end%) do nbtstat -a %input_ip%.%%i | findstr /c:"MAC" /c:"<00>" | findstr /c:"MAC" /c:"UNIQUE" >> %cd%\PC_Details_Temp.txt && echo  IP Address = %input_ip%.%%i >> %cd%\PC_Details_Temp.txt 
    @echo off 
    echo. > %cd%\PC_Details_Logs.txt 
    echo. > %cd%\PC_Details_Logs.txt 
    echo This Batch Script fetches All the Details of the Nearby PC's of Same VLAN.(Starting from 1 to 254 host's) >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo PC Host Name: >> %cd%\PC_Details_Logs.txt 
    find "UNIQUE" PC_Details_Temp.txt >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo PC IP Address: >> %cd%\PC_Details_Logs.txt 
    find "IP" PC_Details_Temp.txt >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo PC MAC Address: >> %cd%\PC_Details_Logs.txt 
    find "MAC" PC_Details_Temp.txt >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo PC Seat No's. and Vnet No's: >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    net view /all >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    echo. >> %cd%\PC_Details_Logs.txt 
    arp -a >> %cd%\PC_Details_Logs.txt 
    :: del %cd%\PC_Details_Temp.txt 
    echo. 
    echo Completed Successfully..! 
    echo. 
    pause 

    :: #****************************************************************** End of Script ********************************************************************# 

希望這可能會有所幫助。

截圖參考, enter image description here

enter image description here