Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
getting External IP: using client-server
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Gangreen
New Member
Join Date:
Feb 2008
Posts:
98
#1
getting External IP: using client-server
Jun 23 '08, 12:21 PM
I have a server , and i want to get the external ip of the clients who connect to me.
How can I do this?
thx
(I do not want to use whatismyip's automation page)
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#2
Jun 23 '08, 12:43 PM
Originally posted by
Gangreen
I have a server , and i want to get the external ip of the clients who connect to me.
Are they just connecting to your server or using your asp.net application?
Comment
Post
Cancel
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#3
Jun 23 '08, 01:34 PM
Originally posted by
kenobewan
Are they just connecting to your server or using your asp.net application?
Based on his
previous thread
it looks like it isn't an ASP.NET app.
Comment
Post
Cancel
Plater
Recognized Expert
Expert
Join Date:
Apr 2007
Posts:
7872
#4
Jun 23 '08, 01:47 PM
The socket object they connect to will give you the remote address.
Comment
Post
Cancel
Gangreen
New Member
Join Date:
Feb 2008
Posts:
98
#5
Jun 23 '08, 04:51 PM
the client as well as the server are written in VB.net.
they are using tcpclient and tcplistener.
Comment
Post
Cancel
Plater
Recognized Expert
Expert
Join Date:
Apr 2007
Posts:
7872
#6
Jun 23 '08, 04:53 PM
Originally posted by
Gangreen
the client as well as the server are written in VB.net.
they are using tcpclient and tcplistener.
TcpClient and TcpListener are built on top of the Socket object and provide access to the underlying Socket object with a property.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment