Navigate the the location below in your registry and make the corresponding change.

Create or edit the existing DWORD value (string value for Windows 98) named "NameServerPort" and set it to the desired port number, the default is 137. 

Restart Windows. 

Key:[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP]
Value Name: NameServerPort
Data Type: REG_DWORD
Data:(Default = 137)

 

Back to Network and Internet Tweaks