Am trying to connect GPRS using Serial Modem in Wince6.0 , while dialing its showing Port opened and device connected but there is no IP address available.Any suggestions please.
When connecting with GPRS you usually need to dial a particular phone number like *99***1# and you may also need to specify the IP gateway or other network specific parameters using additional AT commands.
Related
I’m using the python socket module on a Mac.
How do I connect two computers using the same router? I need a TCP socket with fast data passing between.
When I tried just hooking two computers up by their private ip address, then I got a Connection Refused error. How do I do this?
You can check first whether connection is allowed between two devices by going to one device and running telnet.
telnet <Private-IP-of-Second-Device> <Port>
If this shows connected then connectivity is good and issue exists with the socket module you have written.
If this fails you can try checking the firewall by going to System Preferences > Security & Privacy > Firewall.
I'm very unfamiliar with Linux so forgive me if this has been answered before, I've read quite a few answers but I'm never sure if they actually relate to my question.
I have a headless raspberry pi that connects to my phone's bluetooth automatically, my phone shares its internet access by tethering. I use this initial and reliable connection to SSH to my raspberry pi, and use the desktop with VNC viewer.
I would like to connect to a WiFi network that uses a captive portal, but the browser always uses the bluetooth connection so it never redirects me to the portal page. The bluetooth connection is just to be able to use the desktop so I can get through the portal, then I would like to either disconnect bluetooth or just not use it, mainly because of the low bandwidth it provides.
I've added wlan0 as a priority interface with ifmetric, but that hasn't worked.
I was thinking that forcing all HTTP connections through the wlan0 interface could solve the problem, but there may be a simpler way, feel free to tell me.
Can you explain in "simple" terms the best way to achieve this ?
Of course, there are multiple solutions. The simplest is making sure that there is only one correct default route.
There are 3 situations:
You are only connected via bluetooth via ssh
You are connected via bluetooth and via wifi, but not yet through the splash
You are through the splash
Each will require a different network configuration.
In 1, your network config will probably be:
some IP address (let's call it IP-bt) and network mask
Default gateway is your phone
With route -n you can verify this.
In 2, the network config will depend a bit on the wifi network, but in general, your network config will be:
you'll still have IP-bt
you will have a new address on the wifi adapter (which we call IP-wifi)
the default gateway should be the gateway on the wifi network.
When you verify this with route -n, you might still see a route with destination 0.0.0.0 towards your phone. You can delete this route. Your phone should be on a directly connected network and your ssh session should therefore not break.
If the default gw is not on the wifi network, you can still remove the route that sets your phone as default gw.
Under 3, the default gw must be on the wifi network, and not on the phone. You will still be able to use your phone, because it is directly connected.
Something to watch out for in this scenario is that your phone will act as a DHCP server. That means once in a while your DHCP lease will refresh, and the bluetooth default route may re-appear. Disconnecting bluetooth will prevent this.
The second solution is to use ifmetric. Instead of making wlan0 a lower metric, make your bluetooth a higher metric. Again verify with route -n that the metrics are as you want them to be. Verify with a traceroute how the packets are moving.
A third, and most complex option would be to install Quagga and configure correct routing.
I have 2 different wireless USB adapters: wlan0 and wlan1.
I have an access to 2 Wifi networks: NETWORK_FOO and NETWORK_BAR.
wlan0 connects to NETWORK_FOO. wlan1 connects to NETWORK_BAR.
I'd like to configure it as follows:
wlan0 automatically makes a connection to NETWORK_FOO and OS always chooses this network for web connection.
wlan1 automatically makes a connection to NETWORK_BAR but OS doesn't use this network.
wlan1 connection to NETWORK_BAR should be available for VM guest running on this machine.
How to do it?
(I know there's a bridge connection option, but don't know how to prevent OS from using NETWORK_BAR connection)
Add the rules in route table. By default windows will connect to internet using network adapter based on routing information. It is automatically generated information. You can change the routing information.
I bought an IP-Camera which normally uses an mobile app to establish the first connection. The camera provides a WLAN I can log into using the standard password written on the camera. Now I want to connect to the Camera/Router. I found out the IP address which is 10.10.10.1 and the only open port is 5566 and it is UDPplus. I cannot open up a connection in the browser using 10.10.10.1:5566. Is the camera connection somehow broken so I should return it or is there a different way to establish a connection to an UDPplus port?
AFAIK there's no way to access a UDP port by default
I have a black-box device with a modem attached (which I can send commands to), and would like to be able to connect to send data to a server from it. What connectivity options do I have, is PPP the protocol I need to use or is there a better option?
ppp is certainly the most common solution for getting an IP connection over a modem. There are other solutions, but there's no reason not to use PPP if what you need is an IP connection.
If you don't need an IP connection and you're writing both the client and the server, you could also do a straight serial connection from one modem to another, but that's kind of old-school.
PPP is probably your best option, if you also want an IP gateway and routing. If you only need terminal access to the device, and it runs some form of *nix, you probably have getty+serial communication as an option. You can use any number of modem terminal clients on the other side.