Ask Your Question
0

Wireshark portable v.2.4.3, location of the host file

asked 2018-01-12 11:14:33 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi there,

I want to add a hosts-file to my portable Wireshark application on 64 bit Windows Server 2008 SP1 for Enterprise in order to be able to translate traced IP addresses to mnemonic names.

Does anyone know where this file needs to be located ?

I know that the normal, non-portable Wireshark hosts-file is located in C:\Users\<uid>\AppData\Roaming\Wireshark\ the file in C:\Windows\System32\drivers\etc is not used for Wireshark. None of both deliver results regarding IP resolution for the portable version of Wireshark.

Kind regards, Michael

edit retag flag offensive close merge delete

Comments

1

What does the About Wireshark dialog tab Folders say it should be?

Jaap gravatar imageJaap ( 2018-01-12 15:07:57 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-12 16:03:43 +0000

cmaynard gravatar image

updated 2018-01-12 16:42:35 +0000

grahamb gravatar image

Assuming your USB drive is mounted on the D drive, the default location for personal preferences would be D:\PortableApps\WiresharkPortable\Data. This directory is set in the WiresharkPortable.ini file by setting the WIRESHARK_APPDATA environment variable, which overrides the default location, which is documented in the Wireshark man page under the "ENVIRONMENT VARIABLES" section.

Refer also to the get_persconffile_dir_no_profile() function where that environment variable is read and applied if set.

Note that if you want to change the default Wireshark PortableApps personal configuration directory, you can do so by editing the WIRESHARK_APPDATA entry in the D:\PortableApps\WiresharkPortable\App\AppInfo\Launcher\WiresharkPortable.ini file. You might want to refer to the PortableApps Environment variable substitions page for more information.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-01-12 11:14:33 +0000

Seen: 3,050 times

Last updated: Jan 12 '18