Skip to content

Troubleshooting

Iyotee edited this page Aug 24, 2025 · 1 revision

Troubleshooting Guide

🚨 Common Issues and Solutions

Application Won't Start

Permission Denied Errors

Problem: Application fails to start with permission errors

Error: Permission denied
Error: Access denied
Error: Administrator privileges required

Solutions:

  1. Windows: Right-click executable β†’ "Run as administrator"
  2. Linux/macOS: Use sudo ./DHCPMonitor
  3. Check UAC: Disable User Account Control temporarily
  4. File Permissions: Verify executable has proper permissions

Missing Dependencies

Problem: Application crashes on startup with missing library errors

Error: Cannot find libpcap
Error: Missing wpcap.dll
Error: Npcap not found

Solutions:

  1. Windows: Install Npcap from npcap.com
  2. Linux: sudo apt install libpcap-dev (Ubuntu/Debian)
  3. macOS: brew install libpcap
  4. Reinstall: Uninstall and reinstall the application

Corrupted Installation

Problem: Application starts but behaves unexpectedly

  • Random crashes
  • Missing features
  • Incorrect behavior

Solutions:

  1. Clean Uninstall: Remove all application files
  2. Clear Cache: Delete temporary and cache files
  3. Fresh Install: Download and install latest version
  4. System Restore: Restore system to previous state

Network Interface Issues

No Interfaces Detected

Problem: Application shows "No network interfaces found"

  • Empty interface dropdown
  • Error message about no interfaces

Solutions:

  1. Check Privileges: Ensure running as administrator/root
  2. Verify Adapters: Check if network adapters are active
  3. Driver Issues: Update network adapter drivers
  4. Firewall: Check if firewall is blocking access
  5. Antivirus: Temporarily disable antivirus software

Interface Not Working

Problem: Interface is detected but capture fails

  • Interface shows in list but won't capture
  • Error when starting capture

Solutions:

  1. Interface Status: Verify interface is active and connected
  2. Promiscuous Mode: Enable promiscuous mode if needed
  3. Other Applications: Close other network monitoring tools
  4. Interface Reset: Disable and re-enable network interface
  5. System Restart: Restart computer to reset network stack

Wrong Interface Selected

Problem: Capturing from wrong network interface

  • Capturing from loopback instead of physical interface
  • Capturing from wrong network segment

Solutions:

  1. Interface Selection: Manually select correct interface
  2. Interface Priority: Set preferred interface order
  3. Network Topology: Understand your network layout
  4. Test Capture: Use small test to verify correct interface

Packet Capture Problems

No Packets Captured

Problem: Capture starts but no packets are displayed

  • Capture status shows "Running" but no data
  • Empty logs despite active network

Solutions:

  1. Check Traffic: Verify there is DHCP traffic on network
  2. Filter Issues: Check if filters are too restrictive
  3. Buffer Size: Increase capture buffer size
  4. Timeout Settings: Adjust capture timeout values
  5. Network Activity: Generate DHCP traffic (connect new device)

Incomplete Packet Data

Problem: Packets captured but information is missing

  • Missing IP addresses
  • Incomplete DHCP options
  • Truncated packet data

Solutions:

  1. Buffer Size: Increase capture buffer size
  2. Packet Length: Check maximum packet length settings
  3. Filter Issues: Verify filters aren't truncating packets
  4. Network Issues: Check for network packet fragmentation
  5. Application Settings: Verify packet parsing settings

High Packet Loss

Problem: Many packets are dropped or missed

  • High error count in statistics
  • Missing expected packets

Solutions:

  1. Buffer Size: Increase capture buffer significantly
  2. System Resources: Close other applications
  3. Network Load: Reduce network traffic if possible
  4. Hardware: Use dedicated network monitoring hardware
  5. Capture Threads: Adjust number of capture threads

Performance Issues

High CPU Usage

Problem: Application uses excessive CPU resources

  • System becomes slow
  • High CPU percentage in task manager

Solutions:

  1. Polling Interval: Increase UI update frequency
  2. Buffer Management: Reduce log buffer size
  3. Filter Optimization: Use more efficient filters
  4. Background Tasks: Disable unnecessary background processing
  5. System Resources: Close other resource-intensive applications

High Memory Usage

Problem: Application consumes too much memory

  • Memory usage grows over time
  • System becomes unresponsive

Solutions:

  1. Log Retention: Reduce number of logs kept in memory
  2. Cleanup Interval: Increase automatic cleanup frequency
  3. Export Data: Regularly export and clear logs
  4. Buffer Limits: Set lower buffer size limits
  5. Restart Application: Restart to clear memory

Slow Interface Response

Problem: User interface is slow or unresponsive

  • Buttons take time to respond
  • Scrolling is choppy
  • Interface freezes temporarily

Solutions:

  1. Reduce Log Display: Show fewer log entries at once
  2. Update Frequency: Lower UI update frequency
  3. Background Processing: Move heavy tasks to background
  4. System Resources: Free up system resources
  5. Application Restart: Restart to reset performance

Configuration Problems

Settings Not Saved

Problem: Configuration changes are not persistent

  • Settings revert after restart
  • Changes don't take effect

Solutions:

  1. File Permissions: Check configuration file permissions
  2. File Location: Verify configuration file location
  3. Write Access: Ensure application can write to config directory
  4. File Corruption: Check if config file is corrupted
  5. Multiple Instances: Ensure only one instance is running

Invalid Configuration

Problem: Application crashes due to bad configuration

  • Error on startup
  • Configuration validation fails

Solutions:

  1. Reset Configuration: Reset to default settings
  2. Check Syntax: Verify configuration file syntax
  3. Remove Bad Settings: Delete problematic configuration entries
  4. Import Backup: Restore from known good configuration
  5. Fresh Start: Delete configuration file and restart

Configuration Conflicts

Problem: Multiple configuration sources conflict

  • Settings from different sources
  • Inconsistent behavior

Solutions:

  1. Single Source: Use only one configuration method
  2. Priority Order: Understand configuration precedence
  3. Clear Conflicts: Remove conflicting settings
  4. Environment Variables: Check environment variable settings
  5. Registry Settings: Check Windows registry (if applicable)

πŸ” Diagnostic Tools

Built-in Diagnostics

Status Information

  • Capture Status: Current capture state
  • Interface Status: Network interface information
  • Error Count: Number of capture errors
  • Performance Metrics: CPU and memory usage

Log Analysis

  • Error Logs: Detailed error information
  • Debug Logs: Verbose debugging information
  • Performance Logs: Performance-related data
  • System Logs: System-level information

External Tools

Network Diagnostics

# Windows
ipconfig /all
netsh interface show interface
netstat -an

# Linux/macOS
ifconfig -a
ip addr show
netstat -an

System Monitoring

# Windows
tasklist /fi "imagename eq DHCPMonitor.exe"
wmic process where name="DHCPMonitor.exe" get processid,workingsetsize

# Linux/macOS
ps aux | grep DHCPMonitor
top -p $(pgrep DHCPMonitor)

Packet Analysis

  • Wireshark: Detailed packet analysis
  • tcpdump: Command-line packet capture
  • Network Monitor: Windows built-in tool

πŸ“‹ Troubleshooting Checklist

Before Starting

  • Application has required permissions
  • Network interfaces are active
  • Required dependencies are installed
  • System meets minimum requirements

During Capture

  • Capture is running without errors
  • Packets are being captured
  • Interface is correctly selected
  • Filters are not too restrictive

Performance Check

  • CPU usage is reasonable
  • Memory usage is stable
  • Interface is responsive
  • No excessive errors

Configuration Verification

  • Settings are saved correctly
  • Configuration is valid
  • No conflicting settings
  • File permissions are correct

πŸ†˜ Getting Help

Self-Help Resources

  1. This Wiki: Check other documentation pages
  2. Application Help: Use built-in help system
  3. Error Messages: Search for specific error messages
  4. Common Issues: Review this troubleshooting guide

Community Support

  1. GitHub Issues: Report bugs and request features
  2. GitHub Discussions: Ask questions and get help
  3. Community Forums: Join user community discussions
  4. Documentation: Contribute to documentation

Professional Support

  1. Enterprise Support: Contact for business use
  2. Consulting Services: Get professional assistance
  3. Training: Learn advanced usage techniques
  4. Custom Development: Request custom features

πŸ“š Related Documentation

πŸ”„ Prevention Tips

  • Regular Updates: Keep application updated
  • System Maintenance: Maintain system health
  • Backup Configuration: Regular configuration backups
  • Monitor Performance: Watch for performance degradation
  • Test Changes: Test configuration changes before production use

Clone this wiki locally