Jump to content

  • Log In with Google      Sign In   
  • Create Account


Is there any software to check what is blocking connection ?


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
10 replies to this topic

#1 Tank202   Members   -  Reputation: 171

Like
0Likes
Like

Posted 31 March 2014 - 12:23 PM

Hello there,

 

For 2 months I've been trying sfml, enet and other various networking libraries. But none of the mentioned networking programming tools(enet, SFML...) would work for me. I've tried shutting my firewall with open ports for both UDP and TCP connection, but nothing worked. I also tried several computers when trying this but with no success.

I've been running PRECOMPILED samples that came with SDKs so they should be robust and stable. 

 

So Is there any software that can show what is blocking my pc from connecting to other PCs? 

PS. I have no router. When using local host all programs work perfectly. Games like CSS, ArmA 2, Fallen Earth can connect to their servers...

 

Well any suggestions would be appreciated. :D



Sponsor:

#2 DiegoSLTS   Members   -  Reputation: 812

Like
0Likes
Like

Posted 31 March 2014 - 01:26 PM

There are lots of network monitoring software and the options vary depending on the OS you're using. Search for "network monitor" + your OS in google and you'll find a lot. With those programms you can see the packages that your computer sends and receives.



#3 Tank202   Members   -  Reputation: 171

Like
0Likes
Like

Posted 31 March 2014 - 01:29 PM

Thanks for suggestion. Gonna try it right away...



#4 KnolanCross   Members   -  Reputation: 1158

Like
0Likes
Like

Posted 31 March 2014 - 03:40 PM

The easiest way I know is using netcat, use netcat -l <port> in one computer, then nc <host> <port> in the other.

If the host is not reachable, you can try traceroute to check where is the problem.

 

I got an enet client/server example working in a VM I rent, I can send you the client/server code if you wish.


My blog on programming and games.
http://16bitsflag.blogspot.com.br/

#5 rip-off   Moderators   -  Reputation: 7641

Like
2Likes
Like

Posted 31 March 2014 - 04:10 PM

It isn't clear what experience you have with networking, so apologies if this is stuff you already know. I'm not aware of a single magic tool, but take a look at the following tools:
  • nslookup
  • ping
  • tracert
  • telnet (you'll need any TCP based server running on the destination machine)
  • netcat
  • wget (if you have a HTTP server on the destination machine)
  • wireshark
Some will be installed already on almost any system. This should give you some sense of where in the network stack the problem lies. For the server side, you might want to use tools like netstat or ipconfig/ifconfig to understand what is going on.

It isn't clear whether you are talking about connecting to your PC, or making connections from your PC. Assuming you are talking about trying to host a server on a typical home internet connection, some things to check for include:
  • Your ISP is blocking traffic on an unusual port
  • The outbound router has its own firewall, and that is configured to reject any inbound connections
  • The outbound router is a NAT, and is not configured to forward connections
  • The outbound router is a NAT, but doesn't support connecting to "itself" (i.e. accessing http://my-public-address from "inside" the router doesn't work)
  • The outbound router is configured to go to "sleep" (i.e. release the WAN IP address) after a certain amount of inactivity
  • Your computer is not listening on the relevant IP address (e.g. it might only be listening on the local one)
  • Your computer is not listening on the relevant port
A good thing to try first is an existing popular HTTP server on port 80 - this allows you to test from any browser, some websites will allow you to hit a HTTP URL from outside your network, and you know the problem is not something specific to your program.

Personally, the big hurdle when I tried to do this before was my router. It took quite some time before I tracked down all the settings which interfered with a reliable inbound connection - the "sleep" option was the hardest to figure out, it used to work fine while at home, but when I was away later and tried, it sometimes wouldn't work! I'd recommend going through all of the advanced screens in your router configuration, not just the obvious ones.

Edited by rip-off, 31 March 2014 - 04:13 PM.


#6 hplus0603   Moderators   -  Reputation: 4955

Like
0Likes
Like

Posted 31 March 2014 - 05:46 PM

One of the best tools I know of to figure out what your computer is sending to the rest of the world, and receiving from the rest of the world, is Wireshark. It's a free download. It's like a GUI for tcpdump (which is also pretty rad, if you're running UNIX.)
enum Bool { True, False, FileNotFound };

#7 Tank202   Members   -  Reputation: 171

Like
0Likes
Like

Posted 31 March 2014 - 09:49 PM

I'm running Windows 8.1 x64. And I dont have any experience on networking programming. I also dont know whether the problem is in connecting to other PCs or vice versa. So far I didnt succeed in running your suggested tools properly, but I'm gonna try them all if I have to.

 

And it would be great if you could send me working samples.


Edited by Tank202, 31 March 2014 - 09:50 PM.


#8 hplus0603   Moderators   -  Reputation: 4955

Like
0Likes
Like

Posted 31 March 2014 - 10:14 PM

Does a game that supports user servers work? For example, if you host a Quake III server, can you connect to that from the other machine?
enum Bool { True, False, FileNotFound };

#9 Tank202   Members   -  Reputation: 171

Like
0Likes
Like

Posted 02 April 2014 - 09:28 PM

Yes, at least the ones that you play in broswers...



#10 Tank202   Members   -  Reputation: 171

Like
0Likes
Like

Posted 02 April 2014 - 09:31 PM

I've noticed that my computers have same IP address. Can it be the problem ?

And more, UDP connection can send a message although it never reaches my other computer.



#11 hplus0603   Moderators   -  Reputation: 4955

Like
1Likes
Like

Posted 03 April 2014 - 09:57 AM

I have no router

at least the ones that you play in broswers

I've noticed that my computers have same IP address


It seems that you need to read up on:
- how IP, UDP, and TCP addressing works
- how sockets networking versus browser networking works
- how Internet routing works
- what NAT is
- and what "internal" versus "external" IP addresses are in the context of NAT

Once you've read up on those things, you should be easily able to figure out your original problem.

Edited by hplus0603, 03 April 2014 - 09:58 AM.

enum Bool { True, False, FileNotFound };




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