PartyTime
Posts: 2
Joined: Sat Dec 08, 2012 1:41 pm

Using Net.Dns.GetHostAddresses doesn't find PC

Sat Dec 08, 2012 2:02 pm

Hi, I'm using Mono C# and using a DSL/ethernet router with a Windows 7 PC attached.

Using System.Net.Dns.GetHostAddresses(serverName) only seems to return a single IPAddress (the ISP) rather than the PC.

I'm very new at this Linux/Raspi thing so I'm probably missing a simple way to solve this, but I would greatly appreciate some pointers as to how to get the Raspberry Pi to find the ip address of the PC.

Thanks.

PartyTime
Posts: 2
Joined: Sat Dec 08, 2012 1:41 pm

Re: Using Net.Dns.GetHostAddresses doesn't find PC

Sat Dec 08, 2012 5:00 pm

BTW I should have pointed out that if I make the IPAddress by using the PC's IP, the whole program works perfectly, so there is nothing wrong with the actual setup.

I am a massive fan of this little board, and so far the mono C# cross compiling has worked out really well. Hopefully I will be able to use lots of previously written C# code (as well as learn lots about Linux along the way), saving masses of time on this project.

Remote desktop, PuTTY and playing HD video have all worked pretty flawlessly, with the odd hiccup. Love it.

Paul

Return to “Networking and servers”