Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DarkNet - Local Connection Problems

Author
Message
knxrb
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: United Kingdom
Posted: 21st May 2010 21:39 Edited at: 21st May 2010 21:43
Hi guys, I'm trying to make a 'Remote Connection' type program in VB.Net using DarkNet to send the desktop image across to the server but I can't get it working properly.

When I set the IP address to 192.168.1.125, which is my pc IP address, it works perfectly fine and the client connects to the server and the server gets the image, but when I try and connect from another computer on my LAN it comes up with the error message attached.

All the computers that I've tried it on, including mine, have Windows Firewall turned off and no other firewall active. I also have nothing blocking the ports on any of the machines.

I've tried contacting the maker of Darknet on his email but I keep getting an email send failure email back from the MAILER DAEMON thing so I can't get an answer that way

Do any of you have any ideas on how to fix this?

Here's my code I'm using, (my IP address is the 192.168.1.125):
Start Server Code:


Start Client Code:


Thanks in advance,
knxrb

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 21st May 2010 22:22
From http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx after Googling "error code 10049"

Quote: "
Cannot assign requested address.

The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).
"


Don't use mn DNS on an IP address, that's for looking up the IP address from a FQDN such as server22.game.net.

Put
PRINT LocalHost
SYNC
WAIT KEY
after the mn DNS command and see what it's giving you. Chances are it's not a valid IP address.

knxrb
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: United Kingdom
Posted: 23rd May 2010 00:21
Thanks for your help, I've now got it working

knxrb

Login to post a reply

Server time is: 2026-07-25 16:21:15
Your offset time is: 2026-07-25 16:21:15