Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. IP address on LAN through a wireless router. CarPC project

IP address on LAN through a wireless router. CarPC project

Scheduled Pinned Locked Moved Visual Basic
hardwarehelptutorialannouncement
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    portreathbeach
    wrote on last edited by
    #1

    Hi, I have writen my own front-end for a carPC project and for a final touch I thought I would have an option to wirelessly update the MP3 shared folder on my PC when I am in the driveway. Right, what I have done is set my home PC to a static IP address of '192.168.0.136' and a shared folder called 'mp3' Here is a small bit of code demonstating what I want to do... strHubComputerIP = "192.168.0.136" strHubComputerMp3Folder = "mp3" strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerIP & "\" & strHubComputerMp3Folder & "\") If strRemoteDirectory.Exists Then............ this works fine, but if I change the IP address to "192.168.0.135" or the 'hub' computer is off (the IP address can't be seen), the computer hangs for 2 minutes. For example, if I pull into my drive and want to update, but my home PC is off, I don't want the computer in the car to hang. I want it to tell me that the IP address isn't found. Hope someone can help, I've been working on my front-end for a year now as I've been saving up for the hardware. This is the last bit I need to sort out, then I can build the machine :)

    P 1 Reply Last reply
    0
    • P portreathbeach

      Hi, I have writen my own front-end for a carPC project and for a final touch I thought I would have an option to wirelessly update the MP3 shared folder on my PC when I am in the driveway. Right, what I have done is set my home PC to a static IP address of '192.168.0.136' and a shared folder called 'mp3' Here is a small bit of code demonstating what I want to do... strHubComputerIP = "192.168.0.136" strHubComputerMp3Folder = "mp3" strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerIP & "\" & strHubComputerMp3Folder & "\") If strRemoteDirectory.Exists Then............ this works fine, but if I change the IP address to "192.168.0.135" or the 'hub' computer is off (the IP address can't be seen), the computer hangs for 2 minutes. For example, if I pull into my drive and want to update, but my home PC is off, I don't want the computer in the car to hang. I want it to tell me that the IP address isn't found. Hope someone can help, I've been working on my front-end for a year now as I've been saving up for the hardware. This is the last bit I need to sort out, then I can build the machine :)

      P Offline
      P Offline
      portreathbeach
      wrote on last edited by
      #2

      Just incase anyone was going to answer this question, I have found a way of doing it. Instead of using IP address, I use 'computer name' strHubComputerName = "main-computer" strHubComputerMp3Folder = "mp3" strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerName & "\" & strHubComputerMp3Folder & "\") If strRemoteDirectory.Exists Then............ This only hangs for 2 seconds if the 'folder' isn't found. This is far better.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups