Jump to content

  • Log In with Google      Sign In   
  • Create Account

Lidgren Network


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 scubed   Members   -  Reputation: 100

Like
0Likes
Like

Posted 28 July 2009 - 07:19 AM

I am using the Lidgren UDP networking Library in C#. Everything is fine when client and server are on the same box. However once I am trying to connect from a separate machine I don't seem to have any activity per wireshark on the designated port. Is there something beyond client.Start(); and client.connect(hostname,port) I need to be aware of?

Sponsor:

#2 hplus0603   Moderators   -  Reputation: 5712

Like
0Likes
Like

Posted 29 July 2009 - 12:32 AM

First, make sure that the address of the other machine is configured properly on the client.

Second, make sure that the other host really is reachable -- that there is no NAT or firewall in the way.


#3 scubed   Members   -  Reputation: 100

Like
0Likes
Like

Posted 29 July 2009 - 05:15 AM

Ok the server is on a split tunnel VPN. The client is on the local side of the network.

The firewall between them is not on. I can ping the server from the client. But I am not getting a response via lidgren.

If I do have to get into natting is there a good resource to understand how to set it up or can lidgren library handle it? Should i be considering a different library?

#4 Lidgren   Members   -  Reputation: 187

Like
0Likes
Like

Posted 30 July 2009 - 07:46 AM

Make sure you're using the correct network interface; there's a Start() override where you can specify which address to bind to.

#5 EJH   Members   -  Reputation: 314

Like
0Likes
Like

Posted 03 August 2009 - 09:11 AM

Not sure if you are doing this or not:

- on LAN or LOCALHOST you should use NetClient.DiscoverLocalServers(ip);
- everything else NetClient.DiscoverKnownServer(ip, port);

Do either of those, then

- you will recieve a NetMessageType.ServerDiscovered back from the server
- call NetClient.Connect() with the NetBuffer.ReadIPEndPoint() read from the ServerDiscovered message

Also Lidgren himself posts often and is very helpful on the Google Group. Definitely worth registering for:

http://groups.google.com/group/lidgren-network






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS